changeset 2217:893030a9d351

tmp(wokkel/pubsub): fixed configuration parsing
author Goffi <goffi@goffi.org>
date Mon, 03 Apr 2017 00:13:33 +0200
parents 7e06eafef409
children 6a2fa651d7fa
files src/tmp/wokkel/pubsub.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/tmp/wokkel/pubsub.py	Wed Mar 29 21:04:43 2017 +0200
+++ b/src/tmp/wokkel/pubsub.py	Mon Apr 03 00:13:33 2017 +0200
@@ -470,7 +470,7 @@
         Parse optional node configuration form in create request.
         """
         for element in verbElement.parent.elements():
-            if element.uri == NS_PUBSUB_OWNER and element.name == 'configure':
+            if element.uri in (NS_PUBSUB, NS_PUBSUB_OWNER) and element.name == 'configure':
                 form = data_form.findForm(element, NS_PUBSUB_NODE_CONFIG)
                 if form is not None:
                     if form.formType != 'submit':