diff sat_pubsub/pgsql_storage.py @ 309:890b24b37b56

Re-implemented feature which allows an entity to retract an item from somebody else node (i.e. a node from which he is neither owner or publisher) if he is the publisher of the item.
author Goffi <goffi@goffi.org>
date Mon, 21 Dec 2015 13:41:15 +0100
parents 087b705493a6
children a776544d84e5
line wrap: on
line diff
--- a/sat_pubsub/pgsql_storage.py	Fri Dec 18 13:01:02 2015 +0100
+++ b/sat_pubsub/pgsql_storage.py	Mon Dec 21 13:41:15 2015 +0100
@@ -945,20 +945,6 @@
                           node_id=%s""",
                        (self.nodeDbId,))
 
-   # FIXME: to be checked
-   #  def filterItemsWithPublisher(self, itemIdentifiers, recipient):
-   #      return self.dbpool.runInteraction(self._filterItemsWithPublisher, itemIdentifiers, recipient)
-
-   #  def _filterItemsWithPublisher(self, cursor, itemIdentifiers, requestor):
-   #      self._checkNodeExists(cursor)
-   #      ret = []
-   #      for itemIdentifier in itemIdentifiers:
-   #          args = ["%s/%%" % requestor.userhost(), itemIdentifier]
-   #          cursor.execute("""SELECT item FROM items WHERE publisher LIKE %s AND item=%s""", args)
-   #          result = cursor.fetchone()
-   #          if result:
-   #              ret.append(result[0])
-   #      return ret
 
 class CollectionNode(Node):