Traceback after subscribing to item via User Settings: Subscription

Issue #414 resolved
Roger Haase created an issue

The docs at and under the "Editing subscriptions" could be made more clear by the addition of examples.

If a user is not subscribed to any items, goes to User Settings, Subscription tab, and adds a single line containing "creole" (e.g. expecting to subscribe to the item named creole), clicks the Save button, receives the changes have been saved message, then attempting to access any item results in a traceback.

Workaround: use browser back button to go back to edit the subscription tab and delete the textarea contents, click the save button.

        2014-02-19 10:03:08,831 INFO werkzeug:87 "GET /Home HTTP/1.1" 500 -
  Traceback (most recent call last):
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1836, in __call__
      return self.wsgi_app(environ, start_response)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1820, in wsgi_app
      response = self.make_response(self.handle_exception(e))
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1403, in handle_exception
      reraise(exc_type, exc_value, tb)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1817, in wsgi_app
      response = self.full_dispatch_request()
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
    File "d:\bitbucket\m2-x6\MoinMoin\apps\frontend\", line 416, in show_item
      result = item.do_show(rev)
    File "d:\bitbucket\m2-x6\MoinMoin\items\", line 819, in do_show
    File "d:\bitbucket\m2-x6\MoinMoin\themes\", 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\", line 448, in render_theme_template
      return render_template(template_name, **context)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 128, in render_template
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\flask\", line 110, in _render
      rv = template.render(context)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\", line 969, in render
      return self.environment.handle_exception(exc_info, True)
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\", line 742, in handle_exception
      reraise(exc_type, exc_value, tb)
    File "d:\bitbucket\m2-x6\MoinMoin\templates\show.html", line 13, in top-level template code
      {% import "itemviews.html" as itemviews with context %}
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\", line 1013, in make_module
      return TemplateModule(self, self.new_context(vars, shared, locals))
    File "D:\Bitbucket\m2-x6-venv-python\lib\site-packages\jinja2\", line 1070, in __init__
      self._body_stream = list(template.root_render_func(context))
    File "d:\bitbucket\m2-x6\MoinMoin\templates\itemviews.html", line 59, in top-level template code
      {%- if user.is_subscribed_to(item) %}
    File "d:\bitbucket\m2-x6\MoinMoin\", line 595, in is_subscribed_to
      if get_matched_subscription_patterns(self.subscriptions, **meta):
    File "d:\bitbucket\m2-x6\MoinMoin\util\", line 76, in get_matched_subscription_patterns
      keyword, value = subscription.split(":", 1)
  ValueError: need more than 1 value to unpack

Comments (2)

  1. Log in to comment