changeset 40:b9e7b3b6c687

Moved get_supported_affiliations() to super class. Use string instead of JID in call to store_items().
author Ralph Meijer <ralphm@ik.nu>
date Sun, 31 Oct 2004 21:08:40 +0000
parents 788114f9b5bc
children ea3d3544a52e
files idavoll/memory_backend.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/idavoll/memory_backend.py	Sun Oct 31 21:06:32 2004 +0000
+++ b/idavoll/memory_backend.py	Sun Oct 31 21:08:40 2004 +0000
@@ -36,9 +36,6 @@
         node.configuration.deliver_payloads = True
         self.nodes[node.id] = node
     
-    def get_supported_affiliations(self):
-        return ['none', 'owner', 'outcast', 'publisher']
-
     def create_node(self, node_id, requestor):
         if not node_id:
             raise backend.NoInstantNodes
@@ -80,7 +77,7 @@
                     item["id"] = 'random'   # FIXME
 
         if persist_items:
-            self.store_items(node_id, items, requestor)
+            self.store_items(node_id, items, requestor.full())
 
         if items and not deliver_payloads:
             for item in items: