[Zope3-checkins] CVS: Zope3/src/zope/app/utility/browser - __init__.py:1.2 configure.zcml:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 13 13:01:55 EST 2004


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

Modified Files:
	__init__.py configure.zcml 
Log Message:


Moved registration code to zope.app.registration. Created module aliases, so
that old ZODBs work.


=== Zope3/src/zope/app/utility/browser/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/utility/browser/__init__.py:1.1	Thu Mar 11 17:05:02 2004
+++ Zope3/src/zope/app/utility/browser/__init__.py	Sat Mar 13 13:01:24 2004
@@ -16,11 +16,11 @@
 $Id$
 """
 from zope.app.browser.component.interfacewidget import InterfaceWidget
-from zope.app.browser.services.registration import AddComponentRegistration
+from zope.app.registration.browser import AddComponentRegistration
 from zope.app.form.widget import CustomWidgetFactory
-from zope.app.interfaces.services.registration import ActiveStatus
-from zope.app.interfaces.services.registration import RegisteredStatus
-from zope.app.interfaces.services.registration import UnregisteredStatus
+from zope.app.registration.interfaces import ActiveStatus
+from zope.app.registration.interfaces import RegisteredStatus
+from zope.app.registration.interfaces import UnregisteredStatus
 from zope.app import zapi
 from zope.interface import providedBy
 from zope.proxy import removeAllProxies


=== Zope3/src/zope/app/utility/browser/configure.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/app/utility/browser/configure.zcml:1.1	Thu Mar 11 17:05:02 2004
+++ Zope3/src/zope/app/utility/browser/configure.zcml	Sat Mar 13 13:01:24 2004
@@ -2,6 +2,19 @@
    xmlns:zope="http://namespaces.zope.org/zope"
    xmlns="http://namespaces.zope.org/browser">
 
+<!-- "Add Utility" menu -->
+
+  <view
+    name="AddUtility"
+     for="zope.app.site.interfaces.ISiteManagementFolder"
+     permission="zope.ManageServices"
+     class="zope.app.site.browser.UtilityAdding">
+
+    <page name="index.html"  attribute="index"  />
+    <page name="action.html" attribute="action" />
+
+  </view>    
+
 <!-- Browser directives for the utility service -->
 
   <!-- "Add service" menu entry to add a utility service.




More information about the Zope3-Checkins mailing list