Exemplo n.º 1
0
    def persistent_store_settings(self):
        """
        Example persistent_store_settings method.
        """
        ps_settings = (
            # Connection only, no database
            PersistentStoreConnectionSetting(
                name='primary',
                description='Connection with superuser role needed.',
                required=True),
            # Connection only, no database
            PersistentStoreConnectionSetting(
                name='creator',
                description='Create database role only.',
                required=False),
            # Spatial database
            PersistentStoreDatabaseSetting(
                name='spatial_db',
                description='for storing important spatial stuff',
                required=True,
                initializer='appsettings.model.init_spatial_db',
                spatial=True,
            ),
            # Non-spatial database
            PersistentStoreDatabaseSetting(
                name='temp_db',
                description='for storing temporary stuff',
                required=False,
                initializer='appsettings.model.init_temp_db',
                spatial=False,
            ))

        return ps_settings
Exemplo n.º 2
0
 def persistent_store_settings(self):
     ps_settings = (PersistentStoreDatabaseSetting(
         name='catalog_db',
         description='catalogs database',
         initializer='crazysearch.init_stores.init_catalog_db',
         required=True), )
     return ps_settings
Exemplo n.º 3
0
    def persistent_store_settings(self):
        ps_settings = (PersistentStoreDatabaseSetting(
            name='swat_db',
            description='Primary database for SWAT Online app.',
            initializer='swatdv.model.init_db',
            required=True), )

        return ps_settings
    def persistent_store_settings(self):
        ps_settings = (PersistentStoreDatabaseSetting(
            name='hydroshare_timeseries_manager',
            description='HydroShare Time Series Manager Database',
            initializer=
            'hydroshare_timeseries_manager.model.init_hydroshare_timeseries_manager_db',
            required=True), )

        return ps_settings
Exemplo n.º 5
0
 def persistent_store_settings(self):
     ps_settings = (
         PersistentStoreDatabaseSetting(
             name='primary_db',
             description='primary database',
             initializer='rdst.model.init_primary_db',
             required=True
             ),
         )
     return ps_settings
Exemplo n.º 6
0
 def persistent_store_settings(self):
     """
     Define Persistent Store Settings.
     """
     return (PersistentStoreDatabaseSetting(
         name='main_db',
         description='primary database',
         initializer='streamflow_prediction_tool'
         '.init_stores.init_main_db',
         required=True), )
Exemplo n.º 7
0
    def persistent_store_settings(self):
        """
        Add one or more persistent stores
        """
        stores = [PersistentStoreDatabaseSetting(name='hydroshare_gis_layers',
                                                 initializer='hydroshare_gis.init_stores.init_hydroshare_gis_layers_db',
                                                 spatial=False,
                                                 required=True,
                                                 )]

        return stores
    def persistent_store_settings(self):

        ps_settings = (PersistentStoreDatabaseSetting(
            name='grace_db',
            description='For storing Region and Thredds metadata',
            required=True,
            initializer='grace_groundwater_monitoring_tool.model.init_grace_db',
            spatial=False,
        ), )

        return ps_settings
Exemplo n.º 9
0
    def persistent_store_settings(self):
        """
        Define Persistent Store Settings.
        """
        ps_settings = (PersistentStoreDatabaseSetting(
            name='primary_db',
            description='primary database',
            initializer='dam_inventory.model.init_primary_db',
            required=True), )

        return ps_settings
Exemplo n.º 10
0
    def persistent_store_settings(self):

        ps_settings = (PersistentStoreDatabaseSetting(
            name='main_db',
            description='For storing Region and Geoserver metadata',
            required=True,
            initializer='grace.model.init_main_db',
            spatial=False,
        ), )

        return ps_settings
Exemplo n.º 11
0
    def persistent_store_settings(self):
        """
        Define Persistent Store Settings.
        """
        ps_settings = (PersistentStoreDatabaseSetting(
            name='layers',
            description='layers database',
            initializer='glo_cv.model.init_layer_db',
            required=True,
            spatial=True), )

        return ps_settings
Exemplo n.º 12
0
    def persistent_store_settings(self):
        """
        Define Persistent Store Settings.
        """
        ps_settings = (PersistentStoreDatabaseSetting(
            name='gwdb',
            description='Ground Water Database',
            initializer='gwdm.model.init_db',
            required=True,
            spatial=True), )

        return ps_settings
Exemplo n.º 13
0
    def persistent_store_settings(self):
        """
        Define Persistent Store Settings.
        """
        ps_settings = (
            PersistentStoreDatabaseSetting(
                name='sensor_db',
                description='sensor database',
                initializer='open_air.model.init_sensor_db',
                required=True
            ),
        )

        return ps_settings
Exemplo n.º 14
0
    def persistent_store_settings(self):
        """
            Define Persistent Store Settings.
            """
        ps_settings = (
            PersistentStoreDatabaseSetting(
                name='primary_db',
                description='primary database',
                initializer='hpp.model.init_primary_db',
                required=True),
            # PersistentStoreDatabaseSetting(
            #     name='zone_db',
            #     description='zone database',
            #     initializer='hpp.model.init_zone_db',
            #     required=True
            # ),
        )

        return ps_settings