Exemplo n.º 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()
Exemplo n.º 2
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()