Code

Reopen session with database.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 14 Jul 2009 13:52:38 +0000 (13:52 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 14 Jul 2009 13:52:38 +0000 (13:52 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4316 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index 3b3be84bf6d65c2ca10b5f9d171802e82fea98ea..6208de88ebb08bd89929aa06a75a59b1f1c125d1 100644 (file)
@@ -721,6 +721,10 @@ class Client:
             else:
                 self.db.close()
                 self.db = self.instance.open(username)
+                # The old session API refers to the closed database;
+                # we can no longer use it.
+                self.session_api = Session(self)
 
     def determine_context(self, dre=re.compile(r'([^\d]+)0*(\d+)')):
         """Determine the context of this page from the URL: