[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser - Adding.py:1.1 configure.zcml:1.6 Adder.py:NONE

Jim Fulton jim@zope.com
Sun, 23 Jun 2002 13:04:14 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv11667/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser

Modified Files:
	configure.zcml 
Added Files:
	Adding.py 
Removed Files:
	Adder.py 
Log Message:
Finished implementing
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace

Updated the service manager to use a menu.

Ripped out the old adder registry code.



=== Added File Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/Adding.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""
$Id: Adding.py,v 1.1 2002/06/23 17:03:43 jim Exp $
"""

from Zope.App.OFS.Container.Views.Browser.Adding import Adding as ContentAdding

class ServiceAdding(ContentAdding):
    """Adding component for service containers
    """
    
    menu_id = "add_service"

__doc__ = ServiceAdding.__doc__ + __doc__


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml 1.5 => 1.6 ===
   </browser:view> 
 
-   <browser:view
-       permission="Zope.ManageServices" 
-       for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
-       name="create"  
-       factory=".ServiceAdding."
-       >
-       <browser:page name="index.html"
-       template="add.pt" />
-       <browser:page name="action.html" attribute="action" />
-   </browser:view>
+  <browser:view 
+     name="+"
+     permission="Zope.ManageServices" 
+     for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
+     factory=".Adding.ServiceAdding">
+
+    <browser:page name="index.html"  attribute="index"  />
+    <browser:page name="action.html" attribute="action" />
+
+  </browser:view> 
   
   <browser:view 
      permission="Zope.ManageServices" 

=== Removed File Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/Adder.py ===