annotate frontends/src/wix/constants.py @ 320:5fc5e6a7e5c3

plugin Tarot: added a launch method to automatically create a new room, invite players and create the game - xep-0249 (direct MUC invitation) is used with a custom attribute to invite other users - bridge: added tarotGameLaunch in frontend side
author Goffi <goffi@goffi.org>
date Fri, 06 May 2011 15:42:26 +0200
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")]