Roundup Tracker - Issues

Issue 502951

classification
adding new properties to old database
Type: Severity: normal
Components: Database Versions:
process
Status: closed accepted
:
: richard : pohly, richard
Priority: normal :

Created on 2002-01-13 09:29 by pohly, last changed 2002-01-14 06:43 by richard.

Files
File name Uploaded Description Edit Remove
diff pohly, 2002-01-13 09:29 diff for hyperdb.py
Messages
msg129 Author: [hidden] (pohly) Date: 2002-01-13 09:29
I have modified an old (classic) instance
by adding a new multilink property. hyperdb.py
then fails in set/get for this new property,
because although it knows the property it still
tries to get it from the dictionary, causing
a KeyError.

My understanding is that KeyError should only
be thrown for unknown, but not for empty
properties, therefore I have patched hyperdb.py.

Setting was affected because it tried to
compare against the existing entry. Normal
properties like String() still need the patch
for getting.
msg130 Author: [hidden] (richard) Date: 2002-01-14 06:43
Logged In: YES 
user_id=6405

patched, thanks!
History
Date User Action Args
2002-01-13 09:29:03pohlycreate