Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def load_dbsettings(registry=None):
    session = ptah.get_session()
    if not (session.bind and SettingRecord.__table__.exists()):
        return

    # load db settings
    s_ob = config.get_cfg_storage(
        SETTINGS_OB_ID, registry, default_factory=Settings)
    s_ob.load_fromdb()
        


src/p/t/ptah-0.8.0/ptah/__init__.py   ptah(Download)
from ptah.settings import get_settings
from ptah.settings import register_settings
from ptah.settings import load_dbsettings
 
# security

src/p/t/ptah-HEAD/ptah/__init__.py   ptah(Download)
from ptah.settings import get_settings
from ptah.settings import register_settings
from ptah.settings import load_dbsettings
 
# security

src/p/t/ptah-0.8.0/ptah/ptahsettings.py   ptah(Download)
def starting(ev):
    settings.load_dbsettings()
 

src/p/t/ptah-HEAD/ptah/ptahsettings.py   ptah(Download)
def starting(ev):
    settings.load_dbsettings()