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/c/o/collective.googleauthenticator-0.2.4/src/collective/googleauthenticator/setuphandlers.py   collective.googleauthenticator(Download)
 
from collective.googleauthenticator.helpers import get_app_settings
from collective.googleauthenticator.pas_plugin import GoogleAuthenticatorPlugin
 
_ = MessageFactory('collective.googleauthenticator')
    if pluginid in installed:
        return PAS_TITLE + " already installed."
    plugin = GoogleAuthenticatorPlugin(pluginid, title=PAS_TITLE)
    pas._setObject(pluginid, plugin)
    plugin = pas[plugin.getId()] # get plugin acquisition wrapped!

src/c/o/collective.googleauthenticator-0.2.4/src/collective/googleauthenticator/__init__.py   collective.googleauthenticator(Download)
from Products.PluggableAuthService.PluggableAuthService import registerMultiPlugin
 
from collective.googleauthenticator.pas_plugin import (
    GoogleAuthenticatorPlugin, addGoogleAuthenticatorPlugin, manage_addGoogleAuthenticatorPluginForm
    )