예제 #1
0
 def setup_class(cls):
     model.repo.rebuild_db()
     DguCreateTestData.create_dgu_test_data()
     cls.publisher_controller = 'ckanext.dgu.controllers.publisher:PublisherController'
     import ckanext.dgu.model.publisher_request as pr_model
     pr_model.init_tables(model.meta.engine)
     SmtpServerHarness.setup_class()
 def setup_class(cls):
     model.repo.rebuild_db()
     DguCreateTestData.create_dgu_test_data()
     cls.publisher_controller = 'ckanext.dgu.controllers.publisher:PublisherController'
     import ckanext.dgu.model.publisher_request as pr_model
     pr_model.init_tables(model.meta.engine)
     SmtpServerHarness.setup_class()
    def command(self):
        """
        """
        self._load_config()
        log = logging.getLogger(__name__)

        import ckan.model as model
        model.Session.remove()
        model.Session.configure(bind=model.meta.engine)
        #model.repo.new_revision()
        log.info("Database access initialised")

        import ckanext.dgu.model.publisher_request as pr_model
        pr_model.init_tables(model.meta.engine)
        log.debug("Publisher request table is setup")
예제 #4
0
    def command(self):
        """
        """
        self._load_config()
        log = logging.getLogger(__name__)

        import ckan.model as model
        model.Session.remove()
        model.Session.configure(bind=model.meta.engine)
        #model.repo.new_revision()
        log.info("Database access initialised")

        import ckanext.dgu.model.publisher_request as pr_model
        pr_model.init_tables(model.meta.engine)
        log.debug("Publisher request table is setup")