SVN: r25921 - trunk/quixote

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Fri, 28 Jan 2005 16:27:14 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: dbinger
Date: 2005-01-28 16:27:13 -0500 (Fri, 28 Jan 2005)
New Revision: 25921

Modified:
    trunk/quixote/publish.py
Log:
nas: maintain_session() should be called on "interrupted" requests too.


Modified: trunk/quixote/publish.py
===================================================================
--- trunk/quixote/publish.py	2005-01-28 18:18:27 UTC (rev 25920)
+++ trunk/quixote/publish.py	2005-01-28 21:27:13 UTC (rev 25921)
@@ -323,7 +323,11 @@
          # why this would be necessary), you'll have to abort the
          # current transaction, make your session changes, and then
          # raise the PublishError.
-        self.session_mgr.commit_changes(get_session())
+        session = get_session()
+        if session is not None:
+            session.finish_request()
+            self.session_mgr.maintain_session(session)
+        self.session_mgr.commit_changes(session)
          return output

      def finish_failed_request(self):