[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.6

Steve Alexander steve@cat-box.net
Fri, 3 Jan 2003 10:52:32 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv3345/src/zope/app/browser/form

Modified Files:
	widget.py 
Log Message:
improved formatting, added clarifying comment.


=== Zope3/src/zope/app/browser/form/widget.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.5	Tue Dec 31 06:07:09 2002
+++ Zope3/src/zope/app/browser/form/widget.py	Fri Jan  3 10:52:30 2003
@@ -50,8 +50,7 @@
 
     def getData(self, optional=0):
         field = self.context
-        value = self.request.form.get(self.name,
-                                      self)
+        value = self.request.form.get(self.name, self) # self used as marker
         if value is self:
             # No user input
             if field.required and not optional: