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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/o/collective.googleauthenticator-0.2.4/src/collective/googleauthenticator/browser/forms/reset_bar_code.py   collective.googleauthenticator(Download)
from zope.schema import TextLine
 
from collective.googleauthenticator.helpers import get_token_description, validate_token, validate_user_data
 
logger = logging.getLogger('collective.googleauthenticator')
            if barcode_field:
                if user_data_validation_result.result and bar_code_reset_token == token:
                    barcode_field.field.description = _(get_token_description(user=user, overwrite_secret=False))
                else:
                    if not user_data_validation_result.result:

src/c/o/collective.googleauthenticator-0.2.4/src/collective/googleauthenticator/browser/forms/user_setup.py   collective.googleauthenticator(Download)
from zope.schema import TextLine
 
from collective.googleauthenticator.helpers import get_token_description, validate_token
 
logger = logging.getLogger('collective.googleauthenticator')
            barcode_field = self.fields.get('qr_code')
            if barcode_field:
                barcode_field.field.description = _(get_token_description())
 
            return super(SetupForm, self).updateFields(*args, **kwargs)