[Zope3-checkins] SVN: Zope3/branches/3.2/src/zope/app/form/browser/add.py This if-statement is more precise.

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


Log message for revision 41741:
  This if-statement is more precise.

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

-=-
Modified: Zope3/branches/3.2/src/zope/app/form/browser/add.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/form/browser/add.py	2006-02-21 16:23:53 UTC (rev 41740)
+++ Zope3/branches/3.2/src/zope/app/form/browser/add.py	2006-02-21 18:24:58 UTC (rev 41741)
@@ -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