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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/l/i/LinOTP-2.6.1.1/linotp/lib/config.py   LinOTP(Download)
from linotp.lib.error import ConfigAdminError
 
from linotp.model import Config
from linotp.model.meta import Session
 
    elif confEntries.count() == 0:
        theConf = Config(
                        Key=unicode(key),
                        Value=unicode(value),
                        Type=unicode(typ),

src/l/i/LinOTP-2.6.1.1/linotp/lib/base.py   LinOTP(Download)
 
    if count == 0:
        config_entry = model.Config(key, value, Type=typ, Description=description)
        Session.add(config_entry)