diff --git a/src/tmp/wokkel/pubsub.py b/src/tmp/wokkel/pubsub.py index 22345123..94ee0388 100755 --- a/src/tmp/wokkel/pubsub.py +++ b/src/tmp/wokkel/pubsub.py @@ -287,7 +287,6 @@ class PubSubRequest(generic.Stanza): verb = None - affiliations = None items = None itemIdentifiers = None maxItems = None @@ -615,6 +614,11 @@ class PubSubRequest(generic.Stanza): self.affiliations[entity] = affiliation + def _render_affiliations(self, verbElement): + for entity, affiliation in self.affiliations.iteritems(): + affiliationElement = verbElement.addElement((NS_PUBSUB_OWNER, 'affiliation')) + affiliationElement['jid'] = entity.full() + affiliationElement['affiliation'] = affiliation def _parse_notify(self, verbElement): value = verbElement.getAttribute('notify')