There's absolutely no reason for a Session().commit object mirrored onto Session...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Dec 2014 19:38:18 +0000 (13:38 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Dec 2014 21:40:58 +0000 (15:40 -0600)
Thanks for catching, Elrond :)

mediagoblin/db/open.py

index bd629909c84caa8b9b9f0e11766bdffef16cddf9..8f81c8d910fb40586b58008d802203df21707450 100644 (file)
@@ -97,9 +97,6 @@ else:
             #####################################
             # Functions to emulate DatabaseMaster
             #####################################
-            def commit():
-                session.commit()
-
             def save(obj):
                 session.add(obj)
                 session.flush()
@@ -116,7 +113,6 @@ else:
                 session.remove()
 
             # now attach
-            session.commit = commit
             session.save = save
             session.check_session_clean = check_session_clean
             session.reset_after_request = reset_after_request