Revision 78348987 snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py | ||
---|---|---|
868 | 868 |
'key': k, 'value': v} |
869 | 869 |
self.conn.execute(s, values).close() |
870 | 870 |
|
871 |
def latest_attribute_keys(self, parent, domain, before=inf, except_cluster=0, pathq=[]):
|
|
871 |
def latest_attribute_keys(self, parent, domain, before=inf, except_cluster=0, pathq=None):
|
|
872 | 872 |
"""Return a list with all keys pairs defined |
873 | 873 |
for all latest versions under parent that |
874 | 874 |
do not belong to the cluster. |
875 | 875 |
""" |
876 | 876 |
|
877 |
pathq = pathq or [] |
|
878 |
|
|
877 | 879 |
# TODO: Use another table to store before=inf results. |
878 | 880 |
a = self.attributes.alias('a') |
879 | 881 |
v = self.versions.alias('v') |
Also available in: Unified diff