New submission from Josip Delic <delij...@gmail.com>:

After updating to newer version of repoze.bfg, i've got this error. 

When i remove the level keyword it works. In repoze.bfg.renderers is it also
removed.

Error:
"""
      File
"/home/delicj/.buildout/eggs/repoze.bfg.jinja2-0.5-py2.6.egg/repoze/bfg/jinja2/bindings.py",
line 17, in renderer_factory
        return template_renderer_factory(path, Jinja2TemplateRenderer, 
level=level)
    ConfigurationExecutionError: <type 'exceptions.TypeError'>:
template_renderer_factory() got an unexpected keyword argument 'level'
"""

----------
assignedto: chrism
files: level.patch
messages: 332
nosy: chrism, delijati
priority: bug
status: unread
title: unexpected keyword argument 'level' repoze.bfg.jinja2 (bfg 1.2a2)
topic: repoze.bfg

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue110>
__________________________________
--- bindings.py.old	2009-11-30 18:00:40.067922675 +0100
+++ bindings.py	2009-11-30 17:58:39.835423207 +0100
@@ -13,8 +13,8 @@
 from repoze.bfg.renderers import template_renderer_factory
 from repoze.bfg.settings import get_settings
 
-def renderer_factory(path, level=4):
-    return template_renderer_factory(path, Jinja2TemplateRenderer, level=level)
+def renderer_factory(path):
+    return template_renderer_factory(path, Jinja2TemplateRenderer)
 
 class Jinja2TemplateRenderer(object):
     implements(ITemplateRenderer)
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to