comparison src/core/constants.py @ 2126:2f264f3df280

core (menus): improvments: - use the new convention for bridge names (getMenus ==> menusGet, etc.) - menu now use canonical path, which is the untranslated path with each element stripped and lowercase, it must be unique by menu type - added menuLaunch method to manually launch a menu like an action, canonical path is used instead of id - added SECURITY_LIMIT_MAX constant
author Goffi <goffi@goffi.org>
date Thu, 26 Jan 2017 20:29:48 +0100
parents c42aab22c2c0
children 8717e9cc95c0
comparison
equal deleted inserted replaced
2125:ca82c97db195 2126:2f264f3df280
47 XMPP_KEEP_ALIFE = 180 47 XMPP_KEEP_ALIFE = 180
48 XMPP_MAX_RETRIES = 2 48 XMPP_MAX_RETRIES = 2
49 49
50 50
51 ## Parameters ## 51 ## Parameters ##
52 NO_SECURITY_LIMIT = -1 52 NO_SECURITY_LIMIT = -1 # FIXME: to rename
53 SECURITY_LIMIT_MAX = 0
53 INDIVIDUAL = "individual" 54 INDIVIDUAL = "individual"
54 GENERAL = "general" 55 GENERAL = "general"
55 # General parameters 56 # General parameters
56 HISTORY_LIMIT = "History" 57 HISTORY_LIMIT = "History"
57 SHOW_OFFLINE_CONTACTS = "Offline contacts" 58 SHOW_OFFLINE_CONTACTS = "Offline contacts"
62 # Parameters related to encryption 63 # Parameters related to encryption
63 PROFILE_PASS_PATH = ('General', 'Password') 64 PROFILE_PASS_PATH = ('General', 'Password')
64 MEMORY_CRYPTO_NAMESPACE = 'crypto' # for the private persistent binary dict 65 MEMORY_CRYPTO_NAMESPACE = 'crypto' # for the private persistent binary dict
65 MEMORY_CRYPTO_KEY = 'personal_key' 66 MEMORY_CRYPTO_KEY = 'personal_key'
66 # Parameters for static blog pages 67 # Parameters for static blog pages
68 # FIXME: blog constants should not be in core constants
67 STATIC_BLOG_KEY = "Blog page" 69 STATIC_BLOG_KEY = "Blog page"
68 STATIC_BLOG_PARAM_TITLE = "Title" 70 STATIC_BLOG_PARAM_TITLE = "Title"
69 STATIC_BLOG_PARAM_BANNER = "Banner" 71 STATIC_BLOG_PARAM_BANNER = "Banner"
70 STATIC_BLOG_PARAM_KEYWORDS = "Keywords" 72 STATIC_BLOG_PARAM_KEYWORDS = "Keywords"
71 STATIC_BLOG_PARAM_DESCRIPTION = "Description" 73 STATIC_BLOG_PARAM_DESCRIPTION = "Description"