]> git.decadent.org.uk Git - dak.git/commitdiff
export DBConn
authorMark Hymers <mhy@debian.org>
Sat, 2 May 2009 14:37:55 +0000 (15:37 +0100)
committerMark Hymers <mhy@debian.org>
Sun, 9 Aug 2009 15:49:20 +0000 (16:49 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index f1988ca649d22b5cc6ed6e5b82fbb610ffa13beb..ef6f639af99e94836586f8ed203bed6975a1451b 100755 (executable)
@@ -894,10 +894,7 @@ class DBConn(Singleton):
     def session(self):
         return self.db_smaker()
 
-    def prepare(self,name,statement):
-        if not self.prepared_statements.has_key(name):
-            pgc.execute(statement)
-            self.prepared_statements[name] = statement
+__all__.append('DBConn')
 
 
     def get_location_id(self, location, component, archive):