示例#1
0
 def init_configuration_data(self):
     '''Default configuration, for when CKAN is first used out of the box.
     This state may be subsequently configured by the user.'''
     init_authz_configuration_data()
     if meta.Session.query(Revision).count() == 0:
         rev = Revision()
         rev.author = 'system'
         rev.message = u'Initialising the Repository'
         Session.add(rev)
     self.commit_and_remove()
示例#2
0
文件: __init__.py 项目: arkka/ckan
 def init_configuration_data(self):
     '''Default configuration, for when CKAN is first used out of the box.
     This state may be subsequently configured by the user.'''
     init_authz_configuration_data()
     if meta.Session.query(Revision).count() == 0:
         rev = Revision()
         rev.author = 'system'
         rev.message = u'Initialising the Repository'
         Session.add(rev)
     self.commit_and_remove()