def _get_role_from_js(role):
    roles = {
        'owner': ROLE_OWNER,
        'viewer': ROLE_VIEWER,
        'member': ROLE_MEMBER,
    }
    return roles[role]
Register a function as the nonce and timestamp setter.
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/views/accounts.py/_get_role_from_js--crossover with--dataset/ETHPy150Open lepture/flask-oauthlib/flask_oauthlib/provider/oauth1.py/OAuth1Provider.noncesetter