from linotp.lib.policy import checkPolicyPre, PolicyException, getAdminPolicies, getPolicyDefinitions from pylons.i18n.translation import _ audit = config.get("audit") import traceback import logging log = logging.getLogger(__name__) from linotp.lib.ImportOTP import getKnownTypes, getImportText KNOWN_TYPES = getKnownTypes() IMPORT_TEXT = getImportText() log.info("importing linotp.lib. Known import types: %s" % IMPORT_TEXT) optional = True required = False class ManageController(BaseController): def __before__(self, action, **params): log.debug("[__before__::%r] %r" % (action, params)) try: audit.initialize() c.audit["success"] = False
from linotp.lib.policy import checkPolicyPre from linotp.lib.policy import PolicyException from linotp.lib.policy import getAdminPolicies from linotp.lib.policy.definitions import getPolicyDefinitions from pylons.i18n.translation import _ audit = config.get('audit') import logging log = logging.getLogger(__name__) from linotp.lib.ImportOTP import getKnownTypes, getImportText KNOWN_TYPES = getKnownTypes() IMPORT_TEXT = getImportText() log.info("importing linotp.lib. Known import types: %s" % IMPORT_TEXT) optional = True required = False class ManageController(BaseController): def __before__(self, action, **params): log.debug("[__before__::%r] %r" % (action, params)) try: audit.initialize() c.audit['success'] = False c.audit['client'] = get_client(request)