annotate frontends/src/wix/constants.py @ 297:c5554e2939dd

plugin XEP 0277: author for in request + author, updated management for out request - a workaround is now used to parse "nick" tag (Jappix behaviour) - author and updated can now be used in data when sendind microblog. Is no author is given, user jid is used, if no updated is given, current timestamp is used
author Goffi <goffi@goffi.org>
date Fri, 18 Feb 2011 22:32:02 +0100
parents 533507bb4e32
children 0806a65a5fa9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
227
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
1 import sys,os.path
72
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
2 import __builtin__
227
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
3 import sat_frontends.wix
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
4
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
5 wix_root = os.path.dirname(sat_frontends.wix.__file__)
72
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6
191
1438a1337732 About added/updated for Wix & Jp
Goffi <goffi@goffi.org>
parents: 72
diff changeset
7 __builtin__.__dict__['APP_NAME'] = "Wix"
227
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
8 __builtin__.__dict__['LICENCE_PATH'] = os.path.join(wix_root,"COPYING")
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
9 __builtin__.__dict__['IMAGE_DIR'] = os.path.join(wix_root,'images')
72
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11 __builtin__.__dict__['msgOFFLINE'] = _("offline")
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
12 __builtin__.__dict__['msgONLINE'] = _("online")
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
13 __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed"
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
14 __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None),
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
15 ("chat", _("Free for chat"), "green"),
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
16 ("away", _("AFK"), "brown"),
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
17 ("dnd", _("DND"), "red"),
f271fff3a713 MUC implementation: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
18 ("xa", _("Away"), "red")]