diff 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
line wrap: on
line diff
--- a/src/core/constants.py	Thu Jan 26 20:24:58 2017 +0100
+++ b/src/core/constants.py	Thu Jan 26 20:29:48 2017 +0100
@@ -49,7 +49,8 @@
 
 
     ## Parameters ##
-    NO_SECURITY_LIMIT = -1
+    NO_SECURITY_LIMIT = -1  # FIXME: to rename
+    SECURITY_LIMIT_MAX = 0
     INDIVIDUAL = "individual"
     GENERAL = "general"
     # General parameters
@@ -64,6 +65,7 @@
     MEMORY_CRYPTO_NAMESPACE = 'crypto'  # for the private persistent binary dict
     MEMORY_CRYPTO_KEY = 'personal_key'
     # Parameters for static blog pages
+    # FIXME: blog constants should not be in core constants
     STATIC_BLOG_KEY = "Blog page"
     STATIC_BLOG_PARAM_TITLE = "Title"
     STATIC_BLOG_PARAM_BANNER = "Banner"