Yann Weber 7 gadus atpakaļ
vecāks
revīzija
fcebf96031
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      lodel/plugins/multisite/run.py

+ 4
- 0
lodel/plugins/multisite/run.py Parādīt failu

@@ -22,6 +22,7 @@ except ImportError:
22 22
 
23 23
 LodelContext.init(LodelContext.MULTISITE)
24 24
 LodelContext.set(None) #Loading context creation
25
+
25 26
 #Multisite instance settings loading
26 27
 CONFDIR = os.path.join(os.getcwd(), 'conf.d')
27 28
 if not os.path.isdir(CONFDIR):
@@ -32,10 +33,12 @@ LodelContext.expose_modules(globals(), {
32 33
 if not settings.started():
33 34
     settings('./conf.d', multisite_confspecs.LODEL2_CONFSPECS)
34 35
 
36
+#Fetching insrtance list from subdirectories
35 37
 lodelsites_list = [ os.path.realpath(os.path.join(LODEL2_INSTANCES_DIR,sitename)) 
36 38
     for sitename in os.listdir(LODEL2_INSTANCES_DIR)
37 39
     if os.path.isdir(sitename) and sitename not in EXCLUDE_DIR]
38 40
 
41
+#Bootstraping instances
39 42
 for lodelsite_path in lodelsites_list:
40 43
     ctx_name = LodelContext.from_path(lodelsite_path)
41 44
     #Switch to new context
@@ -96,6 +99,7 @@ def http_error(env, start_response, status = '500 internal server error', \
96 99
 
97 100
 
98 101
 ##@brief utility function to extract site id from an url
102
+#@param url str : 
99 103
 def site_id_from_url(url):
100 104
     res = ''
101 105
     for c in url[1:]:

Notiek ielāde…
Atcelt
Saglabāt