Mercurial > libervia-backend
annotate frontends/src/wix/constants.py @ 615:6f4c31192c7c
plugins XEP-0060, XEP-0277, groupblog: comments implementation (first draft, not finished yet):
- PubSub options constants are moved to XEP-0060
- comments url are generated/parsed according to XEP-0277
- microblog data can now have the following keys:
- "comments", with the url as given in the <link> tag
- "comments_service", with the jid of the PubSub service hosting the comments
- "comments_node", with the parsed node
- comments nodes use different access_model according to parent microblog item access
- publisher is not verified yet, see FIXME warning
- so far, comments node are automatically subscribed
- some bug fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 20 May 2013 23:21:29 +0200 |
parents | 0806a65a5fa9 |
children | 6246eb6d64a0 |
rev | line source |
---|---|
227 | 1 import sys,os.path |
72 | 2 import __builtin__ |
227 | 3 import sat_frontends.wix |
4 | |
5 wix_root = os.path.dirname(sat_frontends.wix.__file__) | |
72 | 6 |
191 | 7 __builtin__.__dict__['APP_NAME'] = "Wix" |
227 | 8 __builtin__.__dict__['LICENCE_PATH'] = os.path.join(wix_root,"COPYING") |
72 | 9 |
10 __builtin__.__dict__['msgOFFLINE'] = _("offline") | |
11 __builtin__.__dict__['msgONLINE'] = _("online") | |
12 __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed" | |
13 __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None), | |
14 ("chat", _("Free for chat"), "green"), | |
15 ("away", _("AFK"), "brown"), | |
16 ("dnd", _("DND"), "red"), | |
17 ("xa", _("Away"), "red")] |