Did I find the right examples for you? yes no

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

        def set_put_user_callback(fn):
    global PUT_USER_CALLBACK
    PUT_USER_CALLBACK = fn
        


src/p/y/pyramid_backend_vgid_oauth2-1.0.2/pyramid_backend_vgid_oauth2/__init__.py   pyramid_backend_vgid_oauth2(Download)
__author__ = 'tarzan'
 
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid_vgid_oauth2 import set_put_user_callback
from pyramid_backend.views import add_model_view
 
    BackendUser = adapter.BackendUser
    set_put_user_callback(adapter.put_user_callback)
    auth_policy = AuthTktAuthenticationPolicy(
        secret=settings.get('pyramid_backend_vgid_oauth2.auth_secret', 'gyPsi-a<G:7ptRo*q%6e'),