コード例 #1
0
    def persistent_stores(self):
        """
        Add one or more persistent stores
        """
        stores = [PersistentStore(name='hydroshare_gis_layers',
                                  initializer='hydroshare_gis.init_stores.init_hydroshare_gis_layers_db',
                                  spatial=False)]

        return stores
コード例 #2
0
ファイル: app.py プロジェクト: SarvaPulla/hydrocatalog
    def persistent_stores(self):
        """
        Add one or more persistent stores
        """
        stores = (PersistentStore(name='hydroserver_catalog',
                                  initializer='hydrocatalog.init_stores.init_hydroserver_catalog'
                                  ),
                  )

        return stores
コード例 #3
0
    def persistent_stores(self):
        """
        Add one or more persistent stores
        """
        stores = (PersistentStore(
            name='stream_gage_db',
            initializer='my_first_app.init_stores.init_stream_gage_db',
            spatial=True), )

        return stores
コード例 #4
0
    def persistent_stores(self):

        stores = (
            PersistentStore(
                name='main_db',  # Name of the database/persistent store
                initializer='grace.init_stores.init_main_db',
                # Location of the persistent store initialization function. See init_stores.py
                spatial=False), )

        return stores
コード例 #5
0
    def persistent_stores(self):
        """
        Add one or more persistent stores
        """
        stores = [PersistentStore(name='wwii_events_db',
                                  initializer='wwii_explorer.init_stores.init_wwii_events_db',
                                  spatial=False
                                  )
                  ]

        return stores
コード例 #6
0
    def persistent_stores(self):
        """
        Add one or more persistent stores
        """
        stores = [
            PersistentStore(
                name='test_datetime_db_engine',
                initializer='test_datetime.init_stores.init_test_datetime_db',
                spatial=False)
        ]

        return stores
コード例 #7
0
ファイル: app.py プロジェクト: msouff/tethysapp-postgis_app
    def persistent_stores(self):
        """
        Add one or more persistent_stores.
        """
        # Create a new persistent store (database)
        stores = (
            PersistentStore(
                name='flooded_addresses',
                initializer='postgis_app.init_stores.init_flooded_addresses_db',
                spatial=True
            ),
        )

        return stores