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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
return the default realm 
- lookup in the config for the DefaultRealm key

@return: the realm name
@rtype : string

        def getDefaultRealm():
    """
        return the default realm 
        - lookup in the config for the DefaultRealm key
        
        @return: the realm name
        @rtype : string
    """
    defaultRealmDef = "linotp.DefaultRealm"
    defaultRealm = getFromConfig(defaultRealmDef, "")

    if defaultRealm is None or defaultRealm == "":
        log.warning("Serious configuration Issue: no Default Realm defined!")
        defaultRealm = ""

    return defaultRealm.lower()
        


src/l/i/LinOTP-2.6.1.1/linotp/controllers/gettoken.py   LinOTP(Download)
from linotp.lib.util import  get_client
from linotp.lib.user import  getUserFromParam
from linotp.lib.user import  getDefaultRealm
from linotp.lib.user import  getUserFromRequest
 
            c.audit['user'] = user.login
            if "" != user.login:
                c.audit['realm'] = user.realm or getDefaultRealm()
 
            if serial: