Revision 0534576c snf-pithos-backend/pithos/backends/lib/sqlite/public.py
b/snf-pithos-backend/pithos/backends/lib/sqlite/public.py | ||
---|---|---|
74 | 74 |
public_url_security, public_url_alphabet |
75 | 75 |
) |
76 | 76 |
q = "insert into public(path, active, url) values(?, 1, ?)" |
77 |
self.execute(q, (path, url)) |
|
78 |
if sqlite3_changes() != 0:
|
|
77 |
r = self.execute(q, (path, url))
|
|
78 |
if r.rowcount != 0:
|
|
79 | 79 |
logger.info('Public url set for path: %s' % path) |
80 | 80 |
|
81 | 81 |
def public_unset(self, path): |
Also available in: Unified diff