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/userdataschema.py   collective.googleauthenticator(Download)
    using `plone.api`, 'cause that one has it).
    """
    from collective.googleauthenticator.helpers import (
        is_two_factor_authentication_globally_enabled, get_or_create_secret
        )
    user = api.user.get(username=principal.getId())
    if is_two_factor_authentication_globally_enabled():

src/c/o/collective.googleauthenticator-0.2.4/src/collective/googleauthenticator/browser/settings_helper.py   collective.googleauthenticator(Download)
from Products.Five import BrowserView
 
from collective.googleauthenticator.helpers import (
    is_two_factor_authentication_globally_enabled, has_enabled_two_factor_authentication
    )