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

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


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

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/registration/configure.zcml 1.9 => 1.10 ===
--- Zope3/src/zope/app/browser/services/registration/configure.zcml:1.9	Tue Mar  2 13:27:39 2004
+++ Zope3/src/zope/app/browser/services/registration/configure.zcml	Fri Mar  5 23:17:21 2004
@@ -2,12 +2,13 @@
    xmlns:zope="http://namespaces.zope.org/zope"
    xmlns="http://namespaces.zope.org/browser">
 
-  <page
+  <zope:view
       for="zope.app.interfaces.services.registration.IRegistrationStatus"
-      name="edit"
-      class=".RegistrationStatusWidget"
-      allowed_interface="zope.app.browser.interfaces.form.IBrowserWidget"
-      permission="zope.ManageServices" />
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      provides="zope.app.interfaces.form.IInputWidget"
+      factory=".RegistrationStatusWidget"
+      permission="zope.ManageServices"
+      />
 
   <page
       for="zope.app.interfaces.services.registration.IRegistrationStack"
@@ -34,19 +35,21 @@
       permission="zope.ManageServices"
       attribute="index" />
 
-  <page
-      permission="zope.Public"
-      allowed_interface="zope.app.browser.interfaces.form.IBrowserWidget"
+  <zope:view
       for="zope.app.interfaces.services.registration.IComponentPath"
-      name="edit"
-      class=".ComponentPathWidget" />
-
-  <page
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      provides="zope.app.interfaces.form.IInputWidget"
+      factory=".ComponentPathWidget"
       permission="zope.Public"
-      allowed_interface="zope.app.browser.interfaces.form.IBrowserWidget"
+      />
+
+  <zope:view
       for="zope.app.interfaces.services.registration.IComponentPath"
-      name="display"
-      class=".ComponentPathWidget" />
+      type="zope.publisher.interfaces.browser.IBrowserRequest"
+      provides="zope.app.interfaces.form.IDisplayWidget"
+      factory=".ComponentPathWidget"
+      permission="zope.Public"
+      />
 
 <!-- RegistrationManager -->
 




More information about the Zope3-Checkins mailing list