comparison libervia/server/constants.py @ 1127:9234f29053b0

server, pages: update to handle multi sites themes, first draft: This first part of update handle changes in backend for multi-sites templates. Templates are now available in _t resource, followed by site name (default one is in "sat").
author Goffi <goffi@goffi.org>
date Sun, 09 Sep 2018 21:12:22 +0200
parents 28e3eb3bb217
children 2af117bfe6cc
comparison
equal deleted inserted replaced
1126:7cd89277a129 1127:9234f29053b0
31 THEMES_DIR = "themes/" 31 THEMES_DIR = "themes/"
32 THEMES_URL = "themes" 32 THEMES_URL = "themes"
33 MEDIA_DIR = "media/" 33 MEDIA_DIR = "media/"
34 CARDS_DIR = "games/cards/tarot" 34 CARDS_DIR = "games/cards/tarot"
35 PAGES_DIR = u"pages" 35 PAGES_DIR = u"pages"
36
37 TPL_RESOURCE = u'_t'
36 38
37 ERRNUM_BRIDGE_ERRBACK = 0 # FIXME 39 ERRNUM_BRIDGE_ERRBACK = 0 # FIXME
38 ERRNUM_LIBERVIA = 0 # FIXME 40 ERRNUM_LIBERVIA = 0 # FIXME
39 41
40 # Security limit for Libervia (get/set params) 42 # Security limit for Libervia (get/set params)
102 ## Cache ## 104 ## Cache ##
103 CACHE_PUBSUB = 0 105 CACHE_PUBSUB = 0
104 106
105 ## Date/Time ## 107 ## Date/Time ##
106 HTTP_DAYS = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun") 108 HTTP_DAYS = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun")
107 HTTP_MONTH = ( 109 HTTP_MONTH = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
108 "Jan", 110 "Nov", "Dec")
109 "Feb",
110 "Mar",
111 "Apr",
112 "May",
113 "Jun",
114 "Jul",
115 "Aug",
116 "Sep",
117 "Oct",
118 "Nov",
119 "Dec",
120 )