aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_cache.py
Commit message (Collapse)AuthorAgeFilesLines
* 2.4-3.3 pass in placeMike Bayer2012-11-111-1/+1
|
* - first pass at running a py3k compatible base in py2k as well.Mike Bayer2012-11-111-1/+1
| | | | | having some weird unicode issues I can't debug; the meaning of str.encode() seems to be changing globally somehow
* - [bug] Can now use strict_undefined at theMike Bayer2012-07-071-26/+30
| | | | | | same time args passed to def() are used by other elements of the <%def> tag. [ticket:191]
* - [feature] Added class-level flag to CacheImplMike Bayer2012-03-241-1/+15
| | | | | | | "pass_context"; when True, the keyword argument 'context' will be passed to get_or_create() containing the Mako Context object. [ticket:185]
* - [feature] Added support for Beaker cache regionsMike Bayer2012-01-211-14/+58
| | | | | | | | in templates. Usage of regions should be considered as superseding the very obsolete idea of passing in backend options, timeouts, etc. within templates. - rewrite the cache docs again which had a lot of misleading/inaccurate info.
* get_and_replace is wrong, for now changed to get_or_create like dogpile.cacheMike Bayer2012-01-181-2/+2
|
* - [feature/bug] Can now refer to context variablesMike Bayer2012-01-161-0/+31
| | | | | | | | | within extra arguments to <%block>, <%def>, i.e. <%block name="foo" cache_key="${somekey}">. Filters can also be used in this way, i.e. <%def name="foo()" filter="myfilter"> then template.render(myfilter=some_callable) [ticket:180]
* propagate cache_impl from lookup to template , #179Mike Bayer2012-01-111-1/+12
|
* - Template caching has been converted into a pluginMike Bayer2011-10-011-22/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | system, whereby the usage of Beaker is just the default plugin. Template and TemplateLookup now accept a string "cache_impl" parameter which refers to the name of a cache plugin, defaulting to the name 'beaker'. New plugins can be registered as pkg_resources entrypoints under the group "mako.cache", or registered directly using mako.cache.register_plugin(). The core plugin is the mako.cache.CacheImpl class. - The <%def>, <%block> and <%page> tags now accept any argument named "cache_*", and the key minus the "cache_" prefix will be passed as keyword arguments to the CacheImpl methods. - Template and TemplateLookup now accept an argument cache_args, which refers to a dictionary containing cache parameters. The cache_dir, cache_url, cache_type, cache_timeout arguments are deprecated (will probably never be removed, however) and can be passed now as cache_args={'url':<some url>, 'type':'memcached', 'timeout':50, 'dir':'/path/to/some/directory'}
* - now that trailing whitespace comes up in red, need to get rid of itMike Bayer2011-01-191-22/+22
|
* begin to modernize testing. in particular, get rid of test_htdocs as well ↵Mike Bayer2010-03-021-44/+43
| | | | | | | as ad-hoc HTML file writing, consistently cleanup the modules/cache directories, use nose skiptests for unsupported features.
* - Unit tests now run with nose. [ticket:127]Mike Bayer2010-02-051-0/+405