# HG changeset patch # User Goffi # Date 1490256430 -3600 # Node ID a67d9617b4ef3677b4db70604b65f2b500d0be36 # Parent 79e36496994ab4dc3485ffac08d91cd4c4a8d1f6 tmp (wokkel/pubsub): fixed configuration setting diff -r 79e36496994a -r a67d9617b4ef wokkel/pubsub.py --- a/wokkel/pubsub.py Tue Mar 14 00:18:02 2017 +0100 +++ b/wokkel/pubsub.py Thu Mar 23 09:07:10 2017 +0100 @@ -471,7 +471,7 @@ Parse optional node configuration form in create request. """ for element in verbElement.parent.elements(): - if element.uri == NS_PUBSUB and element.name == 'configure': + if element.uri == 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': @@ -488,7 +488,10 @@ Render optional node configuration form in create request. """ if self.options is not None: - configure = verbElement.parent.addElement('configure') + if verbElement.name == 'configure': + configure = verbElement + else: + configure = verbElement.parent.addElement('configure') configure.addChild(self.options.toElement()) @@ -1266,7 +1269,6 @@ def _onPubSubRequest(self, iq): request = self._request_class.fromElement(iq) - if self.resource is not None: resource = self.resource.locateResource(request) else: