Traceback after subscribing to item via User Settings: Subscription

Roger Haase avatarRoger Haase created an issue

The docs at https://moin-20.readthedocs.org/en/latest/user/subscriptions.html#types-of-subscriptions 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 127.0.0.1 "GET /Home 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 416, in show_item
      result = item.do_show(rev)
    File "d:\bitbucket\m2-x6\MoinMoin\items\__init__.py", line 819, in do_show
      show_navigation=show_navigation,
    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\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\environment.py", 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\environment.py", 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\user.py", line 595, in is_subscribed_to
      if get_matched_subscription_patterns(self.subscriptions, **meta):
    File "d:\bitbucket\m2-x6\MoinMoin\util\subscriptions.py", line 76, in get_matched_subscription_patterns
      keyword, value = subscription.split(":", 1)
  ValueError: need more than 1 value to unpack

Comments (0)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.