Revision 15a96c3e pithos/backends/lib/sqlite/public.py

b/pithos/backends/lib/sqlite/public.py
66 66
            return row[0]
67 67
        return None
68 68
    
69
    def public_list(self, prefix):
70
        q = "select path, public_id from public where path like ? escape '\\' and active = 1"
71
        self.execute(q, (self.escape_like(prefix) + '%',))
72
        return self.fetchall()
73
    
69 74
    def public_path(self, public):
70 75
        q = "select path from public where public_id = ? and active = 1"
71 76
        self.execute(q, (public,))

Also available in: Unified diff