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/o/b/ObjectStateTracer-0.1a0.dev-r2593/objectstatetracer/auth.py   ObjectStateTracer(Download)
from turbogears import identity
 
from cache import request_cache
 
log = logging.getLogger('objectstatetracer.auth')
    def wrapped(*args, **kw):
        cache = request_cache('auth')
 
        user = identity.current.user and identity.current.user.id or None
 

src/o/b/ObjectStateTracer-0.1a0.dev-r2593/objectstatetracer/model.py   ObjectStateTracer(Download)
from exceptions import *
 
from cache import request_cache
 
hub = PackageHub('objectstatetracer.dburi')
    def from_python(self, value, state):
        mapper = config.get('objectstatetracer.user_mapper')
        model = get_user_model()
        if mapper:
            cache = request_cache('user_validator')