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

All Samples(6)  |  Call(0)  |  Derive(4)  |  Import(2)

src/d/j/django-settings-1.3-11/django_settings/dataapi.py   django-settings(Download)
# -*- coding: utf-8 -*-
# module
from .cache import cache_method, MethodProxy
from .lazyimport import lazyimport
 
class dataapi_set_method_proxy(MethodProxy):
    def __call__(self, type_name, name, value, validate=True, timeout=None):
        get_key = self._keymaker.make('get', [name], {})
        exists_key = self._keymaker.make('exists', [name], {})
        value_to_cache = self.origin_method(type_name, name, value, validate=validate)
class dataapi_get_method_proxy(MethodProxy):
    def __call__(self, name, **kwargs):
        default = kwargs.pop('default', NIL)
        try:
            return super(dataapi_get_method_proxy, self).__call__(name)

src/d/j/django-settings-HEAD/django_settings/dataapi.py   django-settings(Download)
# -*- coding: utf-8 -*-
# module
from .cache import cache_method, MethodProxy
from .lazyimport import lazyimport
 
class dataapi_set_method_proxy(MethodProxy):
    def __call__(self, type_name, name, value, validate=True, timeout=None):
        get_key = self._keymaker.make('get', [name], {})
        exists_key = self._keymaker.make('exists', [name], {})
        value_to_cache = self.origin_method(type_name, name, value, validate=validate)
class dataapi_get_method_proxy(MethodProxy):
    def __call__(self, name, **kwargs):
        default = kwargs.pop('default', NIL)
        try:
            return super(dataapi_get_method_proxy, self).__call__(name)