Browse Source

Correction of lodelsites plugin scripts

Quentin Bonaventure 8 years ago
parent
commit
8a8a624cb7

+ 1
- 0
lodel/plugins/lodelsite_datasource/__init__.py View File

29
             SettingValidator('string')),
29
             SettingValidator('string')),
30
         'db_datasource_ro': (None,
30
         'db_datasource_ro': (None,
31
             SettingValidator('string', none_is_valid = True)),
31
             SettingValidator('string', none_is_valid = True)),
32
+    }
32
 }
33
 }
33
 
34
 
34
 
35
 

+ 1
- 1
lodel/plugins/lodelsite_datasource/fs_utils.py View File

150
         logger.warning('Unable to delete generated conf %s when trying to \
150
         logger.warning('Unable to delete generated conf %s when trying to \
151
 update it %s' % (autoconf, e))
151
 update it %s' % (autoconf, e))
152
     with open(autoconf, 'w+') as cfp:
152
     with open(autoconf, 'w+') as cfp:
153
-        cfp.write(generate_conf(sitename, groups, extensions)
153
+        cfp.write(generate_conf(sitename, groups, extensions))
154
     logger.info('Generated configuration file update for %s' % sitename)
154
     logger.info('Generated configuration file update for %s' % sitename)
155
 
155
 
156
 ##@brief Copy conffile from model and generate a conffile from given infos
156
 ##@brief Copy conffile from model and generate a conffile from given infos

Loading…
Cancel
Save