Linux server19.dn-server.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 46.209.20.154 & Your IP : 216.73.217.55
Domains :
Cant Read [ /etc/named.conf ]
User : emadteam
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
mako /
ext /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
0
B
-rw-r--r--
2013-05-25 03:12
__init__.pyc
140
B
-rw-r--r--
2014-09-17 20:07
__init__.pyo
140
B
-rw-r--r--
2014-09-17 20:07
autohandler.py
1.8
KB
-rw-r--r--
2013-05-25 03:12
autohandler.pyc
1.72
KB
-rw-r--r--
2014-09-17 20:07
autohandler.pyo
1.72
KB
-rw-r--r--
2014-09-17 20:07
babelplugin.py
5.42
KB
-rw-r--r--
2013-05-25 03:12
babelplugin.pyc
4.22
KB
-rw-r--r--
2014-09-17 20:07
babelplugin.pyo
4.22
KB
-rw-r--r--
2014-09-17 20:07
beaker_cache.py
2.32
KB
-rw-r--r--
2013-05-25 03:12
beaker_cache.pyc
3.02
KB
-rw-r--r--
2014-09-17 20:07
beaker_cache.pyo
3.02
KB
-rw-r--r--
2014-09-17 20:07
preprocessors.py
586
B
-rw-r--r--
2013-05-25 03:12
preprocessors.pyc
675
B
-rw-r--r--
2014-09-17 20:07
preprocessors.pyo
675
B
-rw-r--r--
2014-09-17 20:07
pygmentplugin.py
4.43
KB
-rw-r--r--
2013-05-25 03:12
pygmentplugin.pyc
5.41
KB
-rw-r--r--
2014-09-17 20:07
pygmentplugin.pyo
5.41
KB
-rw-r--r--
2014-09-17 20:07
turbogears.py
2.06
KB
-rw-r--r--
2013-05-25 03:12
turbogears.pyc
2.02
KB
-rw-r--r--
2014-09-17 20:07
turbogears.pyo
2.02
KB
-rw-r--r--
2014-09-17 20:07
Save
Rename
"""Provide a :class:`.CacheImpl` for the Beaker caching system.""" from mako import exceptions from mako.cache import CacheImpl _beaker_cache = None class BeakerCacheImpl(CacheImpl): """A :class:`.CacheImpl` provided for the Beaker caching system. This plugin is used by default, based on the default value of ``'beaker'`` for the ``cache_impl`` parameter of the :class:`.Template` or :class:`.TemplateLookup` classes. """ def __init__(self, cache): global _beaker_cache if _beaker_cache is None: try: from beaker import cache as beaker_cache except ImportError: raise exceptions.RuntimeException( "the Beaker package is required to use cache " "functionality.") if 'manager' in cache.template.cache_args: _beaker_cache = cache.template.cache_args['manager'] else: _beaker_cache = beaker_cache.CacheManager() super(BeakerCacheImpl, self).__init__(cache) def _get_cache(self, **kw): expiretime = kw.pop('timeout', None) if 'dir' in kw: kw['data_dir'] = kw.pop('dir') elif self.cache.template.module_directory: kw['data_dir'] = self.cache.template.module_directory if 'manager' in kw: kw.pop('manager') if kw.get('type') == 'memcached': kw['type'] = 'ext:memcached' if 'region' in kw: region = kw.pop('region') cache = _beaker_cache.get_cache_region(self.cache.id, region, **kw) else: cache = _beaker_cache.get_cache(self.cache.id, **kw) cache_args = {'starttime':self.cache.starttime} if expiretime: cache_args['expiretime'] = expiretime return cache, cache_args def get_or_create(self, key, creation_function, **kw): cache, kw = self._get_cache(**kw) return cache.get(key, createfunc=creation_function, **kw) def put(self, key, value, **kw): cache, kw = self._get_cache(**kw) cache.put(key, value, **kw) def get(self, key, **kw): cache, kw = self._get_cache(**kw) return cache.get(key, **kw) def invalidate(self, key, **kw): cache, kw = self._get_cache(**kw) cache.remove_value(key, **kw)