comparison 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
comparison
equal deleted inserted replaced
277:e749401be529 278:8a71486c3e95
551 @return: deferred that fires a C{list} of (item, access_model, id) 551 @return: deferred that fires a C{list} of (item, access_model, id)
552 if unrestricted is True, else a C{list} of items. 552 if unrestricted is True, else a C{list} of items.
553 """ 553 """
554 554
555 555
556 def countItems(authorized_groups, unrestricted):
557 """ Count the accessible items.
558
559 @param authorized_groups: we want to get items that these groups can access.
560 @param unrestricted: if true, don't check permissions (i.e.: get all items).
561 @return: deferred that fires a C{int}.
562 """
563
564
565 def getIndex(authorized_groups, unrestricted, item):
566 """ Retrieve the index of the given item within the accessible window.
567
568 @param authorized_groups: we want to get items that these groups can access.
569 @param unrestricted: if true, don't check permissions (i.e.: get all items).
570 @param item: item identifier.
571 @return: deferred that fires a C{int}.
572 """
573
556 def getItemsById(authorized_groups, unrestricted, itemIdentifiers): 574 def getItemsById(authorized_groups, unrestricted, itemIdentifiers):
557 """ 575 """
558 Get items by item id. 576 Get items by item id.
559 577
560 Each item in the returned list is a unicode string that 578 Each item in the returned list is a unicode string that