update for new sqlalchemy api
authorAdam Glasgall <glasgall@mit.edu>
Thu, 18 Apr 2013 22:33:19 +0000 (18:33 -0400)
committerAdam Glasgall <glasgall@mit.edu>
Thu, 18 Apr 2013 22:33:19 +0000 (18:33 -0400)
debian/changelog
invirtibuilder

index 1dab637..52f5a56 100644 (file)
@@ -1,3 +1,10 @@
+invirt-dev (0.1.24~glasgall4) precise; urgency=low
+
+  * Replace calls to session.save_or_update with session.add (removal of
+    deprecated API use)
+
+ -- Adam Glasgall <glasgall@mit.edu>  Thu, 18 Apr 2013 18:32:24 -0400
+
 invirt-dev (0.1.24~glasgall3ubuntu1) precise; urgency=low
 
   * Change Depends on emacs21 to emacs, now that emacs22 and up are a thing.
index fd1417f..0e5ef50 100755 (executable)
@@ -330,7 +330,7 @@ def build():
         db.pocket = pocket
         db.commit = commit
         db.principal = principal
-        database.session.save_or_update(db)
+        database.session.add(db)
         database.session.commit()
 
         database.session.begin()
@@ -415,7 +415,7 @@ def build():
             if logfile is not None:
                 logfile.close()
 
-            database.session.save_or_update(db)
+            database.session.add(db)
             database.session.commit()
 
             # Finally, now that everything is done, remove the