summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 373db8b)
raw | patch | inline | side by side (parent: 373db8b)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 02:58:35 +0000 (02:58 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 02:58:35 +0000 (02:58 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1094 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_bsddb.py | patch | blob | history | |
roundup/backends/sessions.py | patch | blob | history |
index 598407869550929d6a8a5da2616f8a695ef1cd7b..ce4a6a1fa437052923d2f089d9cb0b3d0b64245e 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_bsddb.py,v 1.21 2002-09-03 07:33:01 richard Exp $
+#$Id: back_bsddb.py,v 1.22 2002-09-09 02:58:34 richard Exp $
'''
This module defines a backend that saves the hyperdatabase in BSDDB.
'''
if os.path.exists(path):
return bsddb.btopen(path, mode)
else:
- return bsddb.btopen(path, 'n')
+ return bsddb.btopen(path, 'c')
def opendb(self, name, mode):
'''Low-level database opener that gets around anydbm/dbm
#
#$Log: not supported by cvs2svn $
+#Revision 1.21 2002/09/03 07:33:01 richard
+#allow overiding of the index args roundup/cgi/templating.py
+#
#Revision 1.20 2002/07/19 03:36:34 richard
#Implemented the destroy() method needed by the session database (and possibly
#others). At the same time, I removed the leading underscores from the hyperdb
index ea105da8258f79469e5b23d2e0b17ab0cc28897e..32563bf2a6a9d9c33a134c1ca5d4cd640069da44 100644 (file)
-#$Id: sessions.py,v 1.1 2002-07-30 08:22:38 richard Exp $
+#$Id: sessions.py,v 1.2 2002-09-09 02:58:35 richard Exp $
'''
This module defines a very basic store that's used by the CGI interface
to store session information.
# new database? let anydbm pick the best dbm
if not db_type:
- return anydbm.open(path, 'n')
+ return anydbm.open(path, 'c')
# open the database with the correct module
dbm = __import__(db_type)
#
#$Log: not supported by cvs2svn $
+#Revision 1.1 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.
+#
#
#