Code

- fix import/export regression test for anydbm for latest journal fix
authorschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 6 Oct 2011 07:03:15 +0000 (07:03 +0000)
committerschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 6 Oct 2011 07:03:15 +0000 (07:03 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4651 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/back_anydbm.py

index 233de403cb6d1117e89834ea82e8daa3db14b3aa..845b1dc30aea7ce48b8ce0ecbd7040ce8ca67165 100644 (file)
@@ -586,7 +586,7 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database):
         for j in journal:
             if j[3] == 'set':
                 for k, v in j[4].items():
-                    if k in pwprops:
+                    if k in pwprops and j[4][k]:
                         j[4][k] = password.JournalPassword(j[4][k])
         return journal