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

All Samples(10)  |  Call(7)  |  Derive(0)  |  Import(3)

src/d/j/django-cacheops-HEAD/cacheops/query.py   django-cacheops(Download)
    MAX_GET_RESULTS = None
 
from cacheops.conf import model_profile, redis_client, handle_connection_failure, STRICT_STRINGIFY
from cacheops.utils import monkey_mix, dnf, get_model_name, non_proxy, stamp_fields, load_script
from cacheops.invalidation import invalidate_obj, invalidate_model
 
    if timeout is None:
        profile = model_profile(model)
        timeout = profile['timeout']
 
    def __init__(self, *args, **kwargs):
        self._no_monkey.__init__(self, *args, **kwargs)
        self._cloning = 1000
 
        self._cacheprofile = model_profile(self.model)
    def _install_cacheops(self, cls):
        cls._cacheprofile = model_profile(cls)
        if cls._cacheprofile is not None and cls not in _old_objs:
            # Set up signals
            pre_save.connect(self._pre_save, sender=cls)

src/d/j/django-cacheops-1.3.1/cacheops/query.py   django-cacheops(Download)
    MAX_GET_RESULTS = None
 
from cacheops.conf import model_profile, redis_client, handle_connection_failure
from cacheops.utils import monkey_mix, dnf, conj_scheme, get_model_name, non_proxy, stamp_fields
from cacheops.invalidation import cache_schemes, conj_cache_key, invalidate_obj, invalidate_model
 
    if timeout is None:
        profile = model_profile(model)
        timeout = profile['timeout']
 
        self._cacheprofile = None
        if self.model:
            self._cacheprofile = model_profile(self.model)
            self._cache_write_only = False
            if self._cacheprofile is not None:
    def _install_cacheops(self, cls):
        cls._cacheprofile = model_profile(cls)
        if cls._cacheprofile is not None and cls not in _old_objs:
            # Set up signals
            if not getattr(cls._meta, 'select_on_save', True):

src/d/j/django-panacea-0.1.2/panacea/tools.py   django-panacea(Download)
# coding: utf-8
from cacheops.invalidation import cache_schemes, conj_cache_key
from cacheops.utils import conj_scheme, non_proxy
from cacheops.conf import model_profile, redis_client
 
 
    if timeout is None:
        profile = model_profile(model)
        timeout = profile['timeout']