]> git.decadent.org.uk Git - dak.git/commitdiff
Allow use with SQLAlchemy 0.7
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 6 May 2012 15:36:32 +0000 (17:36 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 8 May 2012 19:55:48 +0000 (21:55 +0200)
daklib/dbconn.py

index dac0675d3a20772dc9606a98f4e021280726b531..fd2ea345a31942e882786bb36d9b872f8ec2f382 100755 (executable)
@@ -110,11 +110,11 @@ class DebVersion(UserDefinedType):
         return None
 
 sa_major_version = sqlalchemy.__version__[0:3]
-if sa_major_version in ["0.5", "0.6"]:
+if sa_major_version in ["0.5", "0.6", "0.7"]:
     from sqlalchemy.databases import postgres
     postgres.ischema_names['debversion'] = DebVersion
 else:
-    raise Exception("dak only ported to SQLA versions 0.5 and 0.6.  See daklib/dbconn.py")
+    raise Exception("dak only ported to SQLA versions 0.5 to 0.7.  See daklib/dbconn.py")
 
 ################################################################################