1. Thomas Waldmann
  2. moin-2.0
  3. Issues
Issue #400 resolved

Creation of new Default wiki HTML item raises an jinja2.exceptions.UndefinedError

Saurabh Kathpalia
created an issue

While creation of a new wiki item in html the editor does not load and raises an exception

File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/saurabh/moin-2.0/MoinMoin/apps/frontend/views.py", line 570, in modify_item
return item.do_modify()
File "/home/saurabh/moin-2.0/MoinMoin/items/__init__.py", line 869, in do_modify
search_form=None,
File "/home/saurabh/moin-2.0/MoinMoin/themes/__init__.py", line 52, in render_template
return render_theme_template(get_current_theme(), template, **context)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flaskext/themes.py", line 445, in render_theme_template
**context)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/home/saurabh/moin-2.0-venv-python/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/saurabh/moin-2.0/MoinMoin/themes/basic/templates/modify.html", line 9, in top-level template code
{% set title = _("Modifying '%(item_name)s'", item_name=item_name) %}
File "/home/saurabh/moin-2.0/MoinMoin/themes/basic/templates/layout.html", line 38, in top-level template code
{{ label }}
File "/home/saurabh/moin-2.0/MoinMoin/templates/base.html", line 67, in top-level template code
{% block layout %}
File "/home/saurabh/moin-2.0/MoinMoin/themes/basic/templates/layout.html", line 268, in block "layout"
{% block content %}
File "/home/saurabh/moin-2.0/MoinMoin/themes/basic/templates/modify.html", line 35, in block "content"
{{ basic_data_editor(form['content_form'], item_name, class='form-control') }}
UndefinedError: 'jinja2.environment.TemplateModule object' has no attribute 'basic_data_editor'

Comments (3)

  1. Log in to comment