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

Garrett Smith garrett at mojave-corp.com
Mon Mar 1 18:33:40 EST 2004


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

Modified Files:
      Tag: garrett-widgets2-branch
	__init__.py 
Log Message:
Changes related to widget machinery:

- Added source argument to setUpEditWidgets and setUpDisplayWidgets.
- Renamed IEditWidget to IInputWidget.
- Added a widgetsData attribute to zope.app.interfaces.formWidgetsError.



=== Zope3/src/zope/app/browser/services/adapter/__init__.py 1.3.2.1 => 1.3.2.2 ===
--- Zope3/src/zope/app/browser/services/adapter/__init__.py:1.3.2.1	Thu Feb 26 00:10:52 2004
+++ Zope3/src/zope/app/browser/services/adapter/__init__.py	Mon Mar  1 18:33:09 2004
@@ -32,7 +32,7 @@
 
 from zope.app.services.adapter import IAdapterRegistration
 from zope.app.interfaces.services.registration import IRegistration
-from zope.app.interfaces.form import IEditWidget
+from zope.app.interfaces.form import IInputWidget
 from zope.app.form.utility import applyWidgetsChanges
 from zope.app.event import publish
 from zope.app.event.objectevent import ObjectCreatedEvent
@@ -42,7 +42,7 @@
 
     def __init__(self, *args):
         super(AdapterRegistrationAdd, self).__init__(*args)
-        setUpWidgets(self, IAdapterRegistration, IEditWidget)
+        setUpWidgets(self, IAdapterRegistration, IInputWidget)
 
     def refresh(self):
         if "FINISH" in self.request:
@@ -50,7 +50,7 @@
             registration = AdapterRegistration(**data)
             publish(self.context.context, ObjectCreatedEvent(registration))
             registration = self.context.add(registration)
-            applyWidgetsChanges(view, IRegistration, context=registration) 
+            applyWidgetsChanges(view, IRegistration, target=registration) 
             self.request.response.redirect(self.context.nextURL())
             return False
 




More information about the Zope3-Checkins mailing list