[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - configure.zcml:1.87

Garrett Smith garrett at mojave-corp.com
Fri Mar 5 23:17:51 EST 2004


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

Modified Files:
	configure.zcml 
Log Message:
Merged changes from garrett-widgets2-branch:

- Changed the way widgets are looked up to use interfaces instead of 
  names.
  
- Refactor of zope/app/form/utility.py -- see 

    http://dev.zope.org/Zope3/WidgetsAndMultiwayAdapters
    
  for details.
  
- Moved configuration of vocab widgets to its own zcml file
  (zope/app/browser/form/vocabularywidget.zcml).

- Removed 'propertyNames' and 'getValue' from widgets. This  is replaced
  by accessing the widget attributes directly.
  
- Deleted depreated methods from widget interface: haveData and getData.


=== Zope3/src/zope/app/browser/services/configure.zcml 1.86 => 1.87 ===
--- Zope3/src/zope/app/browser/services/configure.zcml:1.86	Fri Mar  5 10:48:55 2004
+++ Zope3/src/zope/app/browser/services/configure.zcml	Fri Mar  5 23:17:20 2004
@@ -67,21 +67,22 @@
 
 <!-- XXX we are phasing these widgets out -->
 
-  <page
+  <zope:view
       for="zope.app.services.field.IComponentPath"
-      name="edit"
-      class="zope.app.browser.services.field.ComponentPathWidget"
-      allowed_interface="zope.app.browser.interfaces.form.IBrowserWidget"
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      provides="zope.app.interfaces.form.IInputWidget"
+      factory="zope.app.browser.services.field.ComponentPathWidget"
       permission="zope.ManageServices"
       />
 
-  <page
+  <zope:view
       for="zope.app.services.field.IComponentPath"
-      name="display"
-      class="zope.app.browser.services.field.ComponentPathDisplayWidget"
-      allowed_interface="zope.app.browser.interfaces.form.IBrowserWidget"
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      provides="zope.app.interfaces.form.IDisplayWidget"
+      factory="zope.app.browser.services.field.ComponentPathDisplayWidget"
       permission="zope.ManageServices"
       />
+
 
 <!-- Adapters -->
   <zope:include package=".adapter" />




More information about the Zope3-Checkins mailing list