Revision 15a96c3e pithos/backends/lib/sqlalchemy/public.py
b/pithos/backends/lib/sqlalchemy/public.py | ||
---|---|---|
85 | 85 |
return row[0] |
86 | 86 |
return None |
87 | 87 |
|
88 |
def public_list(self, prefix): |
|
89 |
s = select([self.public.c.path, self.public.c.public_id]) |
|
90 |
s = s.where(self.xfeatures.c.path.like(self.escape_like(prefix) + '%', escape='\\')) |
|
91 |
s = s.where(self.public.c.active == True) |
|
92 |
r = self.conn.execute(s) |
|
93 |
rows = r.fetchall() |
|
94 |
r.close() |
|
95 |
return rows |
|
96 |
|
|
88 | 97 |
def public_path(self, public): |
89 | 98 |
s = select([self.public.c.path]) |
90 | 99 |
s = s.where(and_(self.public.c.public_id == public, |
Also available in: Unified diff