Revision 7736e11a snf-pithos-backend/pithos/backends/lib/sqlite/node.py

b/snf-pithos-backend/pithos/backends/lib/sqlite/node.py
1039 1039
        self.execute(q, args)
1040 1040
        return self.fetchone()
1041 1041

  
1042
    def domain_object_list(self, domain, cluster=None):
1042
    def domain_object_list(self, domain, paths, cluster=None):
1043 1043
        """Return a list of (path, property list, attribute dictionary)
1044 1044
           for the objects in the specific domain and cluster.
1045 1045
        """
......
1051 1051
             "where n.node = v.node and "
1052 1052
             "n.latest_version = v.serial and "
1053 1053
             "v.serial = a.serial and "
1054
             "a.domain = ? ")
1054
             "a.domain = ? and "
1055
             "n.path in (%s)" % ','.join(['?' for _ in range(len(paths))))
1055 1056
        args = [domain]
1057
        map(args.append, paths)
1056 1058
        if cluster != None:
1057 1059
            q += "and v.cluster = ?"
1058 1060
            args += [cluster]

Also available in: Unified diff