Revision 8b365874 snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py

b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py
1166 1166
        r.close()
1167 1167
        return l
1168 1168

  
1169
    def domain_object_list(self, domain, cluster=None):
1169
    def domain_object_list(self, domain, paths, cluster=None):
1170 1170
        """Return a list of (path, property list, attribute dictionary)
1171 1171
           for the objects in the specific domain and cluster.
1172 1172
        """
......
1184 1184
            s = s.where(v.c.cluster == cluster)
1185 1185
        s = s.where(v.c.serial == a.c.serial)
1186 1186
        s = s.where(a.c.domain == domain)
1187
        if paths:
1188
            s = s.where(n.c.path.in_(paths))
1187 1189

  
1188 1190
        r = self.conn.execute(s)
1189 1191
        rows = r.fetchall()

Also available in: Unified diff