summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c9ffd51)
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
return upgrade_failed()
# And now datastores for any of the plugins
return upgrade_failed()
# And now datastores for any of the plugins
+ userstore = UserStore()
for facility in ['provider_config',
'login_config',
'info_config']:
for facility in ['provider_config',
'login_config',
'info_config']:
plugin = root._site[facility].available[plugin]
logger.debug('Creating plugin AdminStore table')
adminstore.create_plugin_data_table(plugin.name)
plugin = root._site[facility].available[plugin]
logger.debug('Creating plugin AdminStore table')
adminstore.create_plugin_data_table(plugin.name)
+ logger.debug('Creating plugin UserStore table')
+ userstore.create_plugin_data_table(plugin.name)
for store in plugin.used_datastores():
logger.debug('Handling plugin datastore %s',
store.__class__.__name__)
for store in plugin.used_datastores():
logger.debug('Handling plugin datastore %s',
store.__class__.__name__)
else:
raise NotImplementedError()
else:
raise NotImplementedError()
+ def create_plugin_data_table(self, plugin_name):
+ if not self.is_readonly:
+ table = plugin_name+'_data'
+ q = self._query(self._db, table, OPTIONS_TABLE,
+ trans=False)
+ q.create()
+ q._con.close() # pylint: disable=protected-access
+