diff sat_pubsub/memory_storage.py @ 265:89493845d3dd

fix the method signatures of iidavoll.ILeafNode and memory_storage.LeafNode according to pgsql_storage.LeafNode
author souliane <souliane@mailoo.org>
date Sat, 22 Feb 2014 08:04:09 +0100
parents 9dfd3890e646
children 002c59dbc23f
line wrap: on
line diff
--- a/sat_pubsub/memory_storage.py	Sat Feb 22 06:10:24 2014 +0100
+++ b/sat_pubsub/memory_storage.py	Sat Feb 22 08:04:09 2014 +0100
@@ -263,8 +263,8 @@
         self._itemlist = []
 
 
-    def storeItems(self, items, publisher):
-        for element in items:
+    def storeItems(self, item_data, publisher):
+        for access_model, item_config, element in item_data:
             item = PublishedItem(element, publisher)
             itemIdentifier = element["id"]
             if itemIdentifier in self._items:
@@ -291,7 +291,7 @@
         return defer.succeed(deleted)
 
 
-    def getItems(self, maxItems=None):
+    def getItems(self, authorized_groups, unrestricted, maxItems=None):
         if maxItems:
             itemList = self._itemlist[-maxItems:]
         else:
@@ -299,7 +299,7 @@
         return defer.succeed([item.element for item in itemList])
 
 
-    def getItemsById(self, itemIdentifiers):
+    def getItemsById(self, authorized_groups, unrestricted, itemIdentifiers):
         items = []
         for itemIdentifier in itemIdentifiers:
             try: