Revision 4d15c94e snf-pithos-backend/pithos/backends/lib/sqlite/public.py
b/snf-pithos-backend/pithos/backends/lib/sqlite/public.py | ||
---|---|---|
58 | 58 |
q = "update public set active = 0 where path = ?" |
59 | 59 |
self.execute(q, (path,)) |
60 | 60 |
|
61 |
def public_unset_bulk(self, paths): |
|
62 |
placeholders = ','.join('?' for path in paths) |
|
63 |
q = "update public set active = 0 where path in (%s)" % placeholders |
|
64 |
self.execute(q, paths) |
|
65 |
|
|
61 | 66 |
def public_get(self, path): |
62 | 67 |
q = "select public_id from public where path = ? and active = 1" |
63 | 68 |
self.execute(q, (path,)) |
Also available in: Unified diff