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

All Samples(16)  |  Call(10)  |  Derive(0)  |  Import(6)
This returns the version, that is displayed in the WebUI and self service portal.

        def get_version():
    '''
    This returns the version, that is displayed in the WebUI and self service portal.
    '''
    version = get_version_number()
    return "LinOTP %s" % version
        


src/l/i/LinOTP-2.6.1.1/linotp/controllers/selfservice.py   LinOTP(Download)
 
from linotp.lib.audit import logTokenNum
from linotp.lib.util    import get_version
from linotp.lib.util    import get_copyright_info
from linotp.lib.util import get_client
 
 
            c.version = get_version()
            c.licenseinfo = get_copyright_info()
            if isSelfTest():

src/l/i/LinOTP-2.6.1.1/linotp/controllers/manage.py   LinOTP(Download)
from linotp.lib.util    import getParam
from linotp.lib.util    import check_session
from linotp.lib.util    import get_version
from linotp.lib.util    import get_copyright_info
from linotp.lib.reply   import sendError
            self.set_language()
 
            c.version = get_version()
            c.licenseinfo = get_copyright_info()
            c.polDefs = getPolicyDefinitions()

src/l/i/LinOTP-2.6.1.1/linotp/controllers/openid.py   LinOTP(Download)
from linotp.lib.realm import getRealms
from linotp.lib.user     import getRealmBox
from linotp.lib.util    import get_version
from linotp.lib.util    import get_copyright_info
 
            c.logged_in = False
            c.login = ""
            c.version = get_version()
            c.licenseinfo = get_copyright_info()
 

src/l/i/LinOTP-2.6.1.1/linotp/controllers/auth.py   LinOTP(Download)
from linotp.lib.base    import BaseController
from pylons.templating  import render_mako as render
from linotp.lib.util    import get_version
from linotp.lib.util    import get_copyright_info
from linotp.lib.reply import sendError
        try:
 
            c.version = get_version()
            c.licenseinfo = get_copyright_info()
            self.set_language()

src/l/i/LinOTP-2.6.1.1/linotp/controllers/account.py   LinOTP(Download)
from linotp.model.meta  import Session
 
from linotp.lib.util    import get_version
from linotp.lib.util    import get_copyright_info
 
        try:
            self.set_language()
            c.version = get_version()
            c.licenseinfo = get_copyright_info()
 

src/l/i/LinOTP-2.6.1.1/linotp/lib/reply.py   LinOTP(Download)
from linotp.lib.licensebase import checkEE
from linotp.lib.error       import LinotpError
from linotp.lib.util        import get_version
 
 
        code = httperror
        status = httpErr.get(httperror, '')
        desc = '[%s] %d: %s' % (get_version(), errId, errDesc)
        ret = resp % (code, status, code, status, desc)
 
                            },
                    },
                 "version": get_version(),
                 "id": id
            }
                        "value": obj,
                      },
           "version": get_version(),
           "id": id }
 
            <version>%s</version>\
            <id>%s</id>\
            </jsonrpc>' % (obj, get_version(), id)
    return res