diff src/common/constants.py @ 679:a90cc8fc9605

merged branch frontends_multi_profiles
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2015 16:15:18 +0100
parents 3eb3a2c0c011 9092e624bb27
children 9877607c719a
line wrap: on
line diff
--- a/src/common/constants.py	Thu Feb 05 12:05:32 2015 +0100
+++ b/src/common/constants.py	Wed Mar 18 16:15:18 2015 +0100
@@ -18,11 +18,14 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import D_
-from sat_frontends import constants
+from sat_frontends.quick_frontend import constants
+import os.path
 
 
 class Const(constants.Const):
 
+    LIBERVIA_MAIN_PAGE = "libervia.html"
+
     # Frontend parameters
     COMPOSITION_KEY = D_("Composition")
     ENABLE_UNIBOX_PARAM = D_("Enable unibox")
@@ -46,11 +49,15 @@
     UPLOAD_KO = 'UPLOAD KO'
     UNKNOWN_ERROR = 'UNMANAGED FAULT STRING (%s)'
 
-    # PATHS
+    # directories
     AVATARS_DIR = "avatars/"
+    MEDIA_DIR = "media/"
 
-    # Default avatar
-    DEFAULT_AVATAR = "/media/misc/default_avatar.png"
+    # avatars
+    DEFAULT_AVATAR_FILE = "default_avatar.png"
+    DEFAULT_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", DEFAULT_AVATAR_FILE)
+    EMPTY_AVATAR_FILE = "empty_avatar"
+    EMPTY_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", EMPTY_AVATAR_FILE)
 
     RSM_MAX_ITEMS = 5
     RSM_MAX_COMMENTS = 5