Mercurial > p > roundup > code
changeset 1026:8adaf5d169da maint-0.4 0.4.4
more backend database strangeness fixed
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 03 Sep 2002 06:35:16 +0000 |
| parents | 71fa12d26d4f |
| children | 456878600f38 |
| files | CHANGES.txt roundup/backends/back_anydbm.py roundup/backends/back_bsddb.py |
| diffstat | 3 files changed, 19 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Tue Sep 03 03:34:37 2002 +0000 +++ b/CHANGES.txt Tue Sep 03 06:35:16 2002 +0000 @@ -9,6 +9,7 @@ . #603696 ] Mail followup not inserted . #603703 ] way to unassign issues . some more fixes to property editing through the web + . fixed some more database opening and detection problems 2002-07-25 0.4.3
--- a/roundup/backends/back_anydbm.py Tue Sep 03 03:34:37 2002 +0000 +++ b/roundup/backends/back_anydbm.py Tue Sep 03 06:35:16 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.37.2.1 2002-07-10 06:30:47 richard Exp $ +#$Id: back_anydbm.py,v 1.37.2.2 2002-09-03 06:35:16 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -151,8 +151,8 @@ # new database? let anydbm pick the best dbm if not db_type: if __debug__: - print >>hyperdb.DEBUG, "_opendb anydbm.open(%r, 'n')"%path - return anydbm.open(path, 'n') + print >>hyperdb.DEBUG, "_opendb anydbm.open(%r, 'c')"%path + return anydbm.open(path, 'c') # open the database with the correct module try: @@ -488,6 +488,9 @@ # #$Log: not supported by cvs2svn $ +#Revision 1.37.2.1 2002/07/10 06:30:47 richard +# . #571170 ] gdbm deadlock +# #Revision 1.37 2002/06/20 23:52:35 richard #More informative error message #
--- a/roundup/backends/back_bsddb.py Tue Sep 03 03:34:37 2002 +0000 +++ b/roundup/backends/back_bsddb.py Tue Sep 03 06:35:16 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_bsddb.py,v 1.18 2002-05-15 06:21:21 richard Exp $ +#$Id: back_bsddb.py,v 1.18.2.1 2002-09-03 06:35:16 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in BSDDB. ''' @@ -49,7 +49,7 @@ 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 @@ -61,8 +61,8 @@ path = os.path.join(os.getcwd(), self.dir, name) if not os.path.exists(path): if __debug__: - print >>hyperdb.DEBUG, "_opendb bsddb.open(%r, 'n')"%path - return bsddb.btopen(path, 'n') + print >>hyperdb.DEBUG, "_opendb bsddb.open(%r, 'c')"%path + return bsddb.btopen(path, 'c') # open the database with the correct module if __debug__: @@ -119,6 +119,14 @@ # #$Log: not supported by cvs2svn $ +#Revision 1.18 2002/05/15 06:21:21 richard +# . node caching now works, and gives a small boost in performance +# +#As a part of this, I cleaned up the DEBUG output and implemented TRACE +#output (HYPERDBTRACE='file to trace to') with checkpoints at the start of +#CGI requests. Run roundup with python -O to skip all the DEBUG/TRACE stuff +#(using if __debug__ which is compiled out with -O) +# #Revision 1.17 2002/04/03 05:54:31 richard #Fixed serialisation problem by moving the serialisation step out of the #hyperdb.Class (get, set) into the hyperdb.Database.
