projects
/
pithos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AlchemyBackend do db insert or replace in policy_set and attribute_copy
[pithos]
/
pithos
/
backends
/
lib_alchemy
/
node.py
diff --git
a/pithos/backends/lib_alchemy/node.py
b/pithos/backends/lib_alchemy/node.py
index
6e7c887
..
7bd5210
100644
(file)
--- a/
pithos/backends/lib_alchemy/node.py
+++ b/
pithos/backends/lib_alchemy/node.py
@@
-654,6
+654,7
@@
class Node(DBWorker):
attributes = rp.fetchall()
rp.close()
for dest, k, v in attributes:
+ #insert or replace
s = self.attributes.update().where(and_(
self.attributes.c.serial == dest,
self.attributes.c.key == k))