ZODB address list question (source is listed)...
Oleg Broytmann
phd at phd.fep.ru
Thu Jul 12 09:51:34 EDT 2001
On 12 Jul 2001, Robert wrote:
> I am a newbie at both Python and ZODB so I thought I would modify the
> ZODB demo that Mr. Pelletier did. It does the Listing, Adding and
> Quiting fine. But when I add a duplicate it does not tell me that that
> "name" is already in the database.
It doesn't - it just replaces old record. You are supposed to test it
yourself: if not root.has_key(name): root[name] = value.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list