Issue #397 resolved

AttributeError after login 'list' object has no attribute 'meta'

Roger Haase
created an issue
    AttributeError
    AttributeError: 'list' object has no attribute 'meta'

    Traceback (most recent call last)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
    File "D:\Bitbucket\moin-2.0-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\moin-2.0\MoinMoin\apps\frontend\views.py", line 387, in show_item
    result = item.do_show(rev)
    File "d:\bitbucket\moin-2.0\MoinMoin\items\__init__.py", line 819, in do_show
    show_navigation=show_navigation,
    File "d:\bitbucket\moin-2.0\MoinMoin\themes\__init__.py", line 52, in render_template
    return render_theme_template(get_current_theme(), template, **context)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flaskext\themes.py", line 445, in render_theme_template
    **context)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\templating.py", line 128, in render_template
    context, ctx.app)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\flask\templating.py", line 110, in _render
    rv = template.render(context)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\jinja2\environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
    File "D:\Bitbucket\moin-2.0-venv-python\lib\site-packages\jinja2\environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "d:\bitbucket\moin-2.0\MoinMoin\themes\basic\templates\show.html", line 4, in top-level template code
    {% set exists = storage.has_item(item_name) %}
    File "d:\bitbucket\moin-2.0\MoinMoin\themes\basic\templates\layout.html", line 7, in top-level template code
    {% set user_actions, item_navigation, item_actions = theme_supp.get_local_panel(item_name) %}
    File "d:\bitbucket\moin-2.0\MoinMoin\themes\__init__.py", line 164, in get_local_panel
    if flaskg.user.is_subscribed_to([item_name]):
    File "d:\bitbucket\moin-2.0\MoinMoin\user.py", line 582, in is_subscribed_to
    meta = item.meta
    AttributeError: 'list' object has no attribute 'meta'

Workaround

Delete session cookie, do not login

Comments (2)

  1. Log in to comment