Skip to content
Snippets Groups Projects
Commit 17516bbb authored by Mike Bayer's avatar Mike Bayer
Browse files

- cache module now uses Beaker's clsmap to get at

container classes, so cache types such as
"ext:google", "ext:sqla", etc. are available.
memcached is available as both "ext:memcached" and
"memcached", the latter for backwards compatibility.
parent 04a09d48
No related branches found
No related tags found
No related merge requests found
0.2.3
0.2.3
- cache module now uses Beaker's clsmap to get at
container classes, so cache types such as
"ext:google", "ext:sqla", etc. are available.
memcached is available as both "ext:memcached" and
"memcached", the latter for backwards compatibility.
- fixed the html_error_template not handling tracebacks from
normal .py files with a magic encoding comment [ticket:88]
......
from mako import exceptions
try:
import beaker.container as container
import beaker.exceptions
clsmap = {
'memory':container.MemoryContainer,
'dbm':container.DBMContainer,
'file':container.FileContainer,
}
try:
import beaker.ext.memcached as memcached
# XXX HACK: Python 2.3 under some circumstances will import this module
# even though there's no memcached. This ensures its really
# there before adding it.
if hasattr(memcached, 'MemcachedContainer'):
clsmap['memcached'] = memcached.MemcachedContainer
except beaker.exceptions.BeakerException:
pass
from beaker import container, exceptions, cache
clsmap = cache.clsmap
if 'ext:memcached' in clsmap:
clsmap['memcached'] = clsmap['ext:memcached']
except ImportError:
container = None
clsmap = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment