Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/quick_chat.py @ 3070:1370323e8f6c
quick frontend (chat): removed hack not needed anymore now that Pyjamas is not used anymore
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Nov 2019 11:56:21 +0100 |
parents | ab2696e34d29 |
children | 95c94d94872d |
comparison
equal
deleted
inserted
replaced
3069:73db9db8b9e1 | 3070:1370323e8f6c |
---|---|
38 ROOM_USER_JOINED = "ROOM_USER_JOINED" | 38 ROOM_USER_JOINED = "ROOM_USER_JOINED" |
39 ROOM_USER_LEFT = "ROOM_USER_LEFT" | 39 ROOM_USER_LEFT = "ROOM_USER_LEFT" |
40 ROOM_USER_MOVED = (ROOM_USER_JOINED, ROOM_USER_LEFT) | 40 ROOM_USER_MOVED = (ROOM_USER_JOINED, ROOM_USER_LEFT) |
41 | 41 |
42 # from datetime import datetime | 42 # from datetime import datetime |
43 | |
44 try: | |
45 # FIXME: to be removed when an acceptable solution is here | |
46 str("") # XXX: unicode doesn't exist in pyjamas | |
47 except ( | |
48 TypeError, | |
49 AttributeError, | |
50 ): # Error raised is not the same depending on pyjsbuild options | |
51 str = str | |
52 | 43 |
53 # FIXME: day_format need to be settable (i18n) | 44 # FIXME: day_format need to be settable (i18n) |
54 | 45 |
55 | 46 |
56 class Message(object): | 47 class Message(object): |