diff sat_pubsub/iidavoll.py @ 278:8a71486c3e95

implements RSM (XEP-0059)
author souliane <souliane@mailoo.org>
date Mon, 13 Oct 2014 14:53:42 +0200
parents 89493845d3dd
children 002c59dbc23f
line wrap: on
line diff
--- a/sat_pubsub/iidavoll.py	Mon Dec 15 13:14:53 2014 +0100
+++ b/sat_pubsub/iidavoll.py	Mon Oct 13 14:53:42 2014 +0200
@@ -553,6 +553,24 @@
         """
 
 
+    def countItems(authorized_groups, unrestricted):
+        """ Count the accessible items.
+
+        @param authorized_groups: we want to get items that these groups can access.
+        @param unrestricted: if true, don't check permissions (i.e.: get all items).
+        @return: deferred that fires a C{int}.
+        """
+
+
+    def getIndex(authorized_groups, unrestricted, item):
+        """ Retrieve the index of the given item within the accessible window.
+
+        @param authorized_groups: we want to get items that these groups can access.
+        @param unrestricted: if true, don't check permissions (i.e.: get all items).
+        @param item: item identifier.
+        @return: deferred that fires a C{int}.
+        """
+
     def getItemsById(authorized_groups, unrestricted, itemIdentifiers):
         """
         Get items by item id.