Source

wheezy.web / demos / template / src / membership / repository / samples.py

Full commit

"""
"""

from wheezy.core.comp import u


_ = lambda s: s
db = {
    'user': {
        'demo': u('P@ssw0rd'),
        'biz': u('P@ssw0rd')
    },
    'user_role': {
        'demo': ['user'],
        'biz': ['business']
    },
    # the order is set by key
    'password_question': {
        '1': _('Favorite number'),
        '2': _('City of birth'),
        '3': _('Favorite color')
    },
    # honor custom order
    'account_type': (
        ('user', _('User')),
        ('business', _('Business'))
    )
}