Skip to content

Commit 88ec82d

Browse files
author
Richard Jones
committed
more 'n' -> 'c' :(
1 parent 442f8c0 commit 88ec82d

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

roundup/backends/back_bsddb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_bsddb.py,v 1.21 2002-09-03 07:33:01 richard Exp $
18+
#$Id: back_bsddb.py,v 1.22 2002-09-09 02:58:34 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in BSDDB.
2121
'''
@@ -49,7 +49,7 @@ def getclassdb(self, classname, mode='r'):
4949
if os.path.exists(path):
5050
return bsddb.btopen(path, mode)
5151
else:
52-
return bsddb.btopen(path, 'n')
52+
return bsddb.btopen(path, 'c')
5353

5454
def opendb(self, name, mode):
5555
'''Low-level database opener that gets around anydbm/dbm
@@ -131,6 +131,9 @@ def doSaveJournal(self, classname, nodeid, action, params):
131131

132132
#
133133
#$Log: not supported by cvs2svn $
134+
#Revision 1.21 2002/09/03 07:33:01 richard
135+
#allow overiding of the index args roundup/cgi/templating.py
136+
#
134137
#Revision 1.20 2002/07/19 03:36:34 richard
135138
#Implemented the destroy() method needed by the session database (and possibly
136139
#others). At the same time, I removed the leading underscores from the hyperdb

roundup/backends/sessions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: sessions.py,v 1.1 2002-07-30 08:22:38 richard Exp $
1+
#$Id: sessions.py,v 1.2 2002-09-09 02:58:35 richard Exp $
22
'''
33
This module defines a very basic store that's used by the CGI interface
44
to store session information.
@@ -86,7 +86,7 @@ def opendb(self, mode):
8686

8787
# new database? let anydbm pick the best dbm
8888
if not db_type:
89-
return anydbm.open(path, 'n')
89+
return anydbm.open(path, 'c')
9090

9191
# open the database with the correct module
9292
dbm = __import__(db_type)
@@ -97,5 +97,11 @@ def commit(self):
9797

9898
#
9999
#$Log: not supported by cvs2svn $
100+
#Revision 1.1 2002/07/30 08:22:38 richard
101+
#Session storage in the hyperdb was horribly, horribly inefficient. We use
102+
#a simple anydbm wrapper now - which could be overridden by the metakit
103+
#backend or RDB backend if necessary.
104+
#Much, much better.
105+
#
100106
#
101107
#

0 commit comments

Comments
 (0)