示例#1
0
 def __getattribute__(self, attr):
     if attr == 'cache':
         return BaseCache.__getattribute__(self, attr)
     # Don't wrap default_timeout in a functools.partial object (see wrap)
     # This ensures compatibility with django-parler 1.6 under Django 1.9
     if attr == 'default_timeout':
         return self.cache.default_timeout
     return wrap(getattr(self.cache, attr), key(self.cache, attr))
示例#2
0
 def __getattribute__(self, attr):
     if attr == 'cache':
         return BaseCache.__getattribute__(self, attr)
     # Don't wrap default_timeout in a functools.partial object (see wrap)
     # This ensures compatibility with django-parler 1.6 under Django 1.9
     if attr == 'default_timeout':
         return self.cache.default_timeout
     return wrap(getattr(self.cache, attr), key(self.cache, attr))
示例#3
0
文件: cache.py 项目: 101t/django-lms
 def __getattribute__(self, attr):
     if attr == 'cache':
         return BaseCache.__getattribute__(self, attr)
     return wrap(getattr(self.cache, attr), key(self.cache, attr))
示例#4
0
 def __getattribute__(self, attr):
     if attr == 'cache':
         return BaseCache.__getattribute__(self, attr)
     return wrap(getattr(self.cache, attr), key(self.cache, attr))