Skip to content

Commit 407fcc6

Browse files
committed
Reopen session with database.
1 parent 0dcf9af commit 407fcc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roundup/cgi/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,10 @@ def opendb(self, username):
721721
else:
722722
self.db.close()
723723
self.db = self.instance.open(username)
724+
# The old session API refers to the closed database;
725+
# we can no longer use it.
726+
self.session_api = Session(self)
727+
724728

725729
def determine_context(self, dre=re.compile(r'([^\d]+)0*(\d+)')):
726730
"""Determine the context of this page from the URL:

0 commit comments

Comments
 (0)