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

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

src/l/i/LinOTP-2.6.1.1/linotp/lib/realm.py   LinOTP(Download)
'''
 
from linotp.model import Realm, TokenRealm
from linotp.model.meta import Session
 
    if not getRealmObject(name=realm):
        log.debug("[createDBRealm] No realm with name %s exist in database. Creating new" % realm)
        r = Realm(realm)
        r.storeRealm()
        ret = True

src/l/i/LinOTP-2.6.1.1/linotp/lib/token.py   LinOTP(Download)
 
from linotp import model
from linotp.model import Token, createToken, Realm, TokenRealm
from linotp.model.meta import Session
from linotp.model import Challenge