Permalink
Browse files

PEP8. Cosmetic.

  • Loading branch information...
ralphbean committed Jun 15, 2012
1 parent cb1e821 commit 50d88cc9326b470326d04b7983f81e3982338662
Showing with 6 additions and 3 deletions.
  1. +6 −3 tw2/core/templating.py
@@ -13,9 +13,10 @@
_default_rendering_extension_lookup = {
'mako': ['mak', 'mako'],
'genshi': ['genshi', 'html'],
'genshi_abs': ['genshi', 'html'], # just for backwards compatibility with tw2 2.0.0
'jinja':['jinja', 'html'],
'kajiki':['kajiki', 'html'],
# just for backwards compatibility with tw2 2.0.0
'genshi_abs': ['genshi', 'html'],
'jinja': ['jinja', 'html'],
'kajiki': ['kajiki', 'html'],
'chameleon': ['pt']
}
@@ -28,6 +29,7 @@ def get_rendering_extensions_lookup(mw):
return _default_rendering_extension_lookup
return mw.config.rendering_extension_lookup
@memoize
def get_engine_name(template_name, mw=None):
global engine_name_cache
@@ -85,6 +87,7 @@ def _get_dotted_filename(engine_name, template, mw=None):
raise IOError("Couldn't find source for %r" % template)
def _strip_engine_name(template, mw=None):
""" Strip off the leading engine name from the template if it exists. """
rendering_extension_lookup = get_rendering_extensions_lookup(mw)

0 comments on commit 50d88cc

Please sign in to comment.