Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 3826:bf2e9535da00
Journal and database testing.
- Add to Import/Export test to also test that journals are correctly
retrieved
- Fix a bug in anydbm backend that didn't export journal 'set' actions
where the previous value was None -- all other backends export them
correctly so I consider this a bug of anydbm
- Fix journal import/export of Date and Interval for metakit
- Fix journal import of Password for metakit
- Fix setting of Password oldvalue for metakit -- this would be written
as the string "None" instead of the value None. Note that existing
databases *will* have wrong log-entries. Since this is only for
passwords -- and old passwords aren't of much importance -- I consider
this fix to be enough... This fix makes the Journal import/export test
run for metakit.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 14 Mar 2007 15:23:11 +0000 |
| parents | ff9f4ca42454 |
| children | 16faac822fe5 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Wed Mar 14 15:07:24 2007 +0000 +++ b/roundup/backends/back_anydbm.py Wed Mar 14 15:23:11 2007 +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.202 2006-08-29 04:20:50 richard Exp $ +#$Id: back_anydbm.py,v 1.203 2007-03-14 15:23:11 schlatterbeck 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 versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several @@ -1962,8 +1962,7 @@ prop = properties[propname] # make sure the params are eval()'able if value is None: - # don't export empties - continue + pass elif isinstance(prop, hyperdb.Date): # this is a hack - some dates are stored as strings if not isinstance(value, type('')):
