comparison sat_pubsub/pgsql_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 f17034e4cf4a
comparison
equal deleted inserted replaced
264:86e767dc6abb 265:89493845d3dd
604 def getItems(self, authorized_groups, unrestricted, maxItems=None): 604 def getItems(self, authorized_groups, unrestricted, maxItems=None):
605 """ Get all authorised items 605 """ Get all authorised items
606 @param authorized_groups: we want to get items that these groups can access 606 @param authorized_groups: we want to get items that these groups can access
607 @param unrestricted: if true, don't check permissions (i.e.: get all items) 607 @param unrestricted: if true, don't check permissions (i.e.: get all items)
608 @param maxItems: nb of items we want to tget 608 @param maxItems: nb of items we want to tget
609 @return: list of (item, access_model, access_model) if unrestricted is True, else list of items 609 @return: list of (item, access_model, id) if unrestricted is True, else list of items
610 """ 610 """
611 return self.dbpool.runInteraction(self._getItems, authorized_groups, unrestricted, maxItems) 611 return self.dbpool.runInteraction(self._getItems, authorized_groups, unrestricted, maxItems)
612 612
613 613
614 def _getItems(self, cursor, authorized_groups, unrestricted, maxItems): 614 def _getItems(self, cursor, authorized_groups, unrestricted, maxItems):