Revision fbafd482 snf-pithos-backend/pithos/backends/lib/sqlalchemy/public.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/public.py | ||
---|---|---|
118 | 118 |
def public_get(self, path): |
119 | 119 |
s = select([self.public.c.url]) |
120 | 120 |
s = s.where(and_(self.public.c.path == path, |
121 |
self.public.c.active)) |
|
121 |
self.public.c.active == True))
|
|
122 | 122 |
r = self.conn.execute(s) |
123 | 123 |
row = r.fetchone() |
124 | 124 |
r.close() |
... | ... | |
130 | 130 |
s = select([self.public.c.path, self.public.c.url]) |
131 | 131 |
s = s.where(self.public.c.path.like( |
132 | 132 |
self.escape_like(prefix) + '%', escape=ESCAPE_CHAR)) |
133 |
s = s.where(self.public.c.active) |
|
133 |
s = s.where(self.public.c.active == True)
|
|
134 | 134 |
r = self.conn.execute(s) |
135 | 135 |
rows = r.fetchall() |
136 | 136 |
r.close() |
... | ... | |
139 | 139 |
def public_path(self, public): |
140 | 140 |
s = select([self.public.c.path]) |
141 | 141 |
s = s.where(and_(self.public.c.url == public, |
142 |
self.public.c.active)) |
|
142 |
self.public.c.active == True))
|
|
143 | 143 |
r = self.conn.execute(s) |
144 | 144 |
row = r.fetchone() |
145 | 145 |
r.close() |
Also available in: Unified diff