[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/add.py Like Rev. 41741 in 3.2:

Egon Frerich e.frerich at nord-com.net
Tue Feb 21 13:27:00 EST 2006


Log message for revision 41742:
  Like Rev. 41741 in 3.2:
  This if-statement is more precise.

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/add.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/add.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/add.py	2006-02-21 18:24:58 UTC (rev 41741)
+++ Zope3/trunk/src/zope/app/form/browser/add.py	2006-02-21 18:27:00 UTC (rev 41742)
@@ -115,7 +115,7 @@
             adapted = self.schema(content)
             for name in self._set_after_add:
                 if name in data:
-                    if data[name] <> None:
+                    if data[name] is not None:
                         field = self.schema[name]
                         try:
                             field.set(adapted, data[name])



More information about the Zope3-Checkins mailing list