[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration - __init__.py:1.8

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Aug 16 16:17:42 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/registration
In directory cvs.zope.org:/tmp/cvs-serv4545/browser/services/registration

Modified Files:
	__init__.py 
Log Message:
Fixed bug that was introduced to Garrett's changes, but it was not his fault.
This version of the ComponentPAthWidget haad zero unittests, which I now 
added.


=== Zope3/src/zope/app/browser/services/registration/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/services/registration/__init__.py:1.7	Fri Aug 15 20:43:02 2003
+++ Zope3/src/zope/app/browser/services/registration/__init__.py	Sat Aug 16 15:17:08 2003
@@ -232,14 +232,17 @@
         "See zope.app.interfaces.browser.form.IBrowserWidget"
         return ''
 
+    def hasInput(self):
+        "See zope.app.interfaces.form.IWidget"
+        return 1
+
     def getInputValue(self):
         "See zope.app.interfaces.form.IWidget"
         field = self.context
         context = field.context
         if IComponentRegistration.isImplementedBy(context):
             # It's a registration object. Just get the corresponding attr
-            # XXX this code has no unittests !!!
-            path = getattr(context, field.__name__)
+            path = getattr(context, field.getName())
         else:
             # It must be a component that is about to be configured.
             # Always return a relative path (just the component name)




More information about the Zope3-Checkins mailing list