[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/add.py Initialized values are not overwritten by 'None' if there is no input for a data field.

Benji York benji at zope.com
Tue Feb 21 10:43:55 EST 2006


Stephan Richter wrote:
> On Tuesday 21 February 2006 10:31, Egon Frerich wrote:
> 
>>+                    if data[name] <> None:
> 
> 
> Better is: if data[name] is not None

Also note that "!=" is preferred over "<>".
-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-Checkins mailing list