Revision 7736e11a snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py | ||
---|---|---|
1167 | 1167 |
r.close() |
1168 | 1168 |
return l |
1169 | 1169 |
|
1170 |
def domain_object_list(self, domain, cluster=None): |
|
1170 |
def domain_object_list(self, domain, paths, cluster=None):
|
|
1171 | 1171 |
"""Return a list of (path, property list, attribute dictionary) |
1172 | 1172 |
for the objects in the specific domain and cluster. |
1173 | 1173 |
""" |
... | ... | |
1185 | 1185 |
s = s.where(v.c.cluster == cluster) |
1186 | 1186 |
s = s.where(v.c.serial == a.c.serial) |
1187 | 1187 |
s = s.where(a.c.domain == domain) |
1188 |
if paths: |
|
1189 |
s = s.where(n.c.path.in_(paths)) |
|
1188 | 1190 |
|
1189 | 1191 |
r = self.conn.execute(s) |
1190 | 1192 |
rows = r.fetchall() |
Also available in: Unified diff