|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 | ''' |
20 | 20 | This module defines a backend that saves the hyperdatabase in BSDDB. |
21 | 21 | ''' |
@@ -49,7 +49,7 @@ def getclassdb(self, classname, mode='r'): |
49 | 49 | if os.path.exists(path): |
50 | 50 | return bsddb.btopen(path, mode) |
51 | 51 | else: |
52 | | - return bsddb.btopen(path, 'n') |
| 52 | + return bsddb.btopen(path, 'c') |
53 | 53 |
|
54 | 54 | def opendb(self, name, mode): |
55 | 55 | '''Low-level database opener that gets around anydbm/dbm |
@@ -131,6 +131,9 @@ def doSaveJournal(self, classname, nodeid, action, params): |
131 | 131 |
|
132 | 132 | # |
133 | 133 | #$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 | +# |
134 | 137 | #Revision 1.20 2002/07/19 03:36:34 richard |
135 | 138 | #Implemented the destroy() method needed by the session database (and possibly |
136 | 139 | #others). At the same time, I removed the leading underscores from the hyperdb |
|
0 commit comments