Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
beaker 1.1
Tags
rel_0_2_3
Philip Jenvey
use __builtin__, __builtins__ is an implementation detail
Mike Bayer
- fixed bug whereby an <%included> template with <%page> args named the same as a __builtin__ would not honor the default value specified in <%page> [ticket:93]
Mike Bayer
put parenthesis around expressions from ${} blocks inside of attributes to better support grouping
Mike Bayer
support blank tag attributes
Mike Bayer
- RichTraceback() now accepts an optional traceback object to be used in place of sys.exc_info()[2]. html_error_template() and text_error_template() accept an optional render()-time argument "traceback" which is passed to the RichTraceback object. - lexer tests now rely upon an always-sorted dict repr()
Mike Bayer
- the <%namespacename:defname> syntax described at http://techspot.zzzeek.org/?p=28 has now been added as a built in syntax, and is recommended as a more modern syntax versus <%call expr="expression">. The %call tag itself will always remain, with <%namespacename:defname> presenting a more HTML-like alternative to calling defs, both plain and nested. Many examples of the new syntax are in the "Calling a def with embedded content" …
Philip Jenvey
don't assume dict ordering
Philip Jenvey
whitespace
Philip Jenvey
we don't have to split('.') either on Jython now
Mike Bayer
- beaker bump - added "cache_enabled=True" flag to Template, TemplateLookup. Setting this to False causes cache operations to "pass through" and execute every time; this flag should be integrated in Pylons with its own cache_enabled configuration setting.
Philip Jenvey
Beaker 1.0.4 isn't out yet, require dev for now
Mike Bayer
- caching now uses beaker.cache_manager directly. For best results use Beaker 1.0.4, just checked in. This version of Beaker stores no persistent state in memory for each key, allowing dynamically generated keys to work without using up available memory.
Mike Bayer
cache sends in a "defname" parameter so that the cache can map settings to that name, instead of the key. eliminates the need to store all Value objects which will use up RAM in a dynamic-key scenario.
Philip Jenvey
update to latest Jython AST class name mappings
Philip Jenvey
bump to 0.2.3dev
Mike Bayer
- added "cache" accessor to Template, Namespace. e.g. ${local.cache.get('somekey')} or template.cache.invalidate_body() - the Cache object now supports invalidate_def(name), invalidate_body(), invalidate_closure(name), invalidate(key), which will remove the given key from the cache, if it exists. The cache arguments (i.e. storage type) are derived from whatever has been already persisted for that template. [ticket:92]
Mike Bayer
doc fixes including [ticket:89]
Philip Jenvey
o fix compatibility with babel 0.9.3: stripping comment tags is now optional and babel is responisble for stripping them when necessary o remove the no longer needed Unicode/Str ast hack for Jython
Philip Jenvey
merge trunk@400:branches/jython@400 to trunk adds support for Jython 2.5
Philip Jenvey
fix Python 2.3 compat fixes #90
Mike Bayer
- added docs for self.attr, template.get_def()
Mike Bayer
correction
Mike Bayer
- fixed cache code to work with Beaker 1.0.1, which is now the required version of Beaker. - removed unnecessary attributes from DefTemplate. - added ModuleTemplate class, which allows the construction of a Template given a Python module generated by a previous Template. This allows Python modules alone to be used as templates with no compilation step. Source code and template source are optional but allow error reporting to work correctly.
Mike Bayer
- 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.
Philip Jenvey
fix the html_error_template not handling tracebacks from normal .py files with a magic encoding comment
Mike Bayer
<%include> accepts args !
Mike Bayer
- cached blocks now use the current context when rendering an expired section, instead of the original context passed in [ticket:87]
Tags
rel_0_2_2
Mike Bayer
- fixed a critical issue regarding caching, whereby a cached block would raise an error when called within a cache-refresh operation that was initiated after the initiating template had completed rendering.
Mike Bayer
bumped genhtml version #
  1. Prev
  2. Next