Browse Source

Small bugfixes allowing deb pkg installation

Only syntax errors
Yann Weber 8 years ago
parent
commit
e621f4adc5
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      lodel/plugins/lodelsite_datasource/sites_utils.py

+ 9
- 9
lodel/plugins/lodelsite_datasource/sites_utils.py View File

@@ -19,24 +19,24 @@ from lodel.context import LodelContext
19 19
 def update_dyncode(site_name, em_groups):
20 20
     _, ctx_path = LodelContext.lodelsites_paths()
21 21
     dyncode_path = os.path.join(os.path.join(ctx_path, site_name),
22
-        buildconf.MULTISITE_DYNCODE_MODULENAME+'.py')
22
+            buildconf.MULTISITE_DYNCODE_MODULENAME+'.py')
23 23
     LodelContext.expose_module(globals(), {
24
-        'lodel.logger': 'logger',
25
-        'lodel.settings': ['Settings'],
26
-        'lodel.editorial_model.model': ['EditorialModel'],
27
-        'lodel.leapi.lefactory': 'lefactory'}
28
-    
24
+            'lodel.logger': 'logger',
25
+            'lodel.settings': ['Settings'],
26
+            'lodel.editorial_model.model': ['EditorialModel'],
27
+            'lodel.leapi.lefactory': 'lefactory'})
28
+
29 29
     EditorialModel._override_settings(False, em_groups)
30 30
     model = EditorialModel.load(
31 31
         Settings.lodelsites.sites_emtranslator,
32 32
         filename = Settings.lodelsites.sites_emfile)
33 33
     logger.info('EditorialModel loaded for handled site %s' % site_name)
34 34
     dyncode = lefactory.dyncode_from_em(model)
35
-        site_name, em_groups))
36 35
     with open(dyncode_path, 'w+') as dfp:
37 36
         dfp.write(dyncode)
38 37
     EditorialModel._override_settings() #Restoring safe values
39 38
     logger.info('Dyncode generated for handled site %s' % site_name)
40 39
     logger.debug('Dyncode for %s contains those groups : %s' % (
41
-    
42
-    
40
+        site_name, em_groups))
41
+
42
+

Loading…
Cancel
Save