1. Thomas Waldmann
  2. moin-2.0
Issue #413 resolved

Traceback after clicking Save button on User Settings: Subscriptions tab

Roger Haase
created an issue

If you login, click Subscribe link on any item, then go to User Settings > Subscriptions tab, and click the Save button without making any changes, there is a traceback on the console log:

2014-02-19 09:42:16,211 INFO werkzeug:87 127.0.0.1 "POST /+usersettings HTTP/1.1" 500 -
Traceback (most recent call last):
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "d:\bitbucket\m2-x6\MoinMoin\apps\frontend\views.py", line 1749, in usersettings
    form=form,
  File "d:\bitbucket\m2-x6\MoinMoin\themes\__init__.py", line 52, in render_template
    return render_theme_template(get_current_theme(), template, **context)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flaskext\themes.py", line 448, in render_theme_template
    return render_template(template_name, **context)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\templating.py", line 128, in render_template
    context, ctx.app)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\templating.py", line 110, in _render
    rv = template.render(context)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "d:\bitbucket\m2-x6\MoinMoin\templates\usersettings_ajax.html", line 16, in top-level template code
    {{ user_forms.subscriptions(form) }}
  File "d:\bitbucket\m2-x6\MoinMoin\templates\usersettings_forms.html", line 90, in template
    {{ forms.render(form['subscriptions']) }}
  File "d:\bitbucket\m2-x6\MoinMoin\templates\forms.html", line 62, in template
    {{ macro(field, *varargs, **kwargs) }}
  File "d:\bitbucket\m2-x6\MoinMoin\templates\forms.html", line 99, in template
    {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, **kwargs) }}
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flatland\out\markup.py", line 289, in __call__
    header = self._open(bind, attributes)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flatland\out\markup.py", line 262, in _open
    tagname, attributes, contents, self._context, bind)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flatland\out\generic.py", line 18, in transform
    contents = fn(tagname, attributes, contents, context, bind)
  File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flatland\out\generic.py", line 174, in transform_value
    return context['markup_wrapper'](_markup_escape(bind.u))
  File "d:\bitbucket\m2-x6\MoinMoin\forms.py", line 245, in u
    name_ = item.meta['name'][0]
AttributeError: 'NoneType' object has no attribute 'meta'