comparison frontends/src/constants.py @ 967:242bd4fc654c

core, frontends (constants): frontends Const inheritates from core Const
author souliane <souliane@mailoo.org>
date Tue, 01 Apr 2014 16:27:59 +0200
parents 1a3ba959f0ab
children 0a9986452bba
comparison
equal deleted inserted replaced
966:9cae72da1b95 967:242bd4fc654c
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 20
21 from sat.core import constants
21 from sat.core.i18n import _, D_ 22 from sat.core.i18n import _, D_
22 23
23 try: 24 try:
24 from collections import OrderedDict # only available from python 2.7 25 from collections import OrderedDict # only available from python 2.7
25 except ImportError: 26 except ImportError:
48 "xa": _("Away") 49 "xa": _("Away")
49 } 50 }
50 return presence 51 return presence
51 52
52 53
53 class Const(object): 54 class Const(constants.Const):
55
54 PRESENCE = getPresence() 56 PRESENCE = getPresence()
55 57
56 MENU_NORMAL = "NORMAL" 58 MENU_NORMAL = "NORMAL"
57 59
58 # from plugin_misc_text_syntaxes 60 # from plugin_misc_text_syntaxes
59 SYNTAX_XHTML = "XHTML" 61 SYNTAX_XHTML = "XHTML"
60 SYNTAX_CURRENT = "@CURRENT@" 62 SYNTAX_CURRENT = "@CURRENT@"
61 SYNTAX_TEXT = "text" 63 SYNTAX_TEXT = "text"
62
63 NO_SECURITY_LIMIT = -1
64 64
65 # XMLUI 65 # XMLUI
66 SAT_FORM_PREFIX = "SAT_FORM_" 66 SAT_FORM_PREFIX = "SAT_FORM_"
67 SAT_PARAM_SEPARATOR = "_XMLUI_PARAM_" # used to have unique elements names 67 SAT_PARAM_SEPARATOR = "_XMLUI_PARAM_" # used to have unique elements names
68 68