From 88ba1de024f9fc03360be645d87b3d78e39e5243 Mon Sep 17 00:00:00 2001 From: gmcm Date: Tue, 30 Jul 2002 16:09:11 +0000 Subject: [PATCH] Simple optimization. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@933 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 9e0af6b..d0b188a 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.147 2002-07-30 08:22:38 richard Exp $ +# $Id: cgi_client.py,v 1.148 2002-07-30 16:09:11 gmcm Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1332,8 +1332,9 @@ function help_window(helpurl, width, height) { " %(action)s.")%{'action': 'registration'} # re-open the database as "admin" - self.opendb('admin') - + if self.user != 'admin': + self.opendb('admin') + # create the new user cl = self.db.user try: @@ -1691,6 +1692,12 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): # # $Log: not supported by cvs2svn $ +# Revision 1.147 2002/07/30 08:22:38 richard +# Session storage in the hyperdb was horribly, horribly inefficient. We use +# a simple anydbm wrapper now - which could be overridden by the metakit +# backend or RDB backend if necessary. +# Much, much better. +# # Revision 1.146 2002/07/30 05:27:30 richard # nicer error messages, and a bugfix # -- 2.30.2