Mercurial > libervia-backend
view frontends/src/wix/constants.py @ 432:31e8c48b5f5d
core: - memory refactoring (moved memory.py and sqlite.py from tools to memory)
- private values are now stored in storage (currently sqlite database) and splitted in normal/binary storage. Normal storage is for string key/values, binary storage is for string key and any python data for value
- PersistentDict and PersistentBinaryDict are sugar classes to manage the data in storage thought a python dictionary like class.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Nov 2011 15:34:37 +0100 |
parents | 0806a65a5fa9 |
children | 6246eb6d64a0 |
line wrap: on
line source
import sys,os.path import __builtin__ import sat_frontends.wix wix_root = os.path.dirname(sat_frontends.wix.__file__) __builtin__.__dict__['APP_NAME'] = "Wix" __builtin__.__dict__['LICENCE_PATH'] = os.path.join(wix_root,"COPYING") __builtin__.__dict__['msgOFFLINE'] = _("offline") __builtin__.__dict__['msgONLINE'] = _("online") __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed" __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None), ("chat", _("Free for chat"), "green"), ("away", _("AFK"), "brown"), ("dnd", _("DND"), "red"), ("xa", _("Away"), "red")]