[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager - IPackageAdding.py:1.1 configure.zcml:1.11

Stephan Richter srichter@cbu.edu
Mon, 23 Dec 2002 03:16:08 -0500


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

Modified Files:
	configure.zcml 
Added Files:
	IPackageAdding.py 
Log Message:
Implemented VFS views for the Local Service Manager. You can now traverse
into it up to Packages. 

Since Jim did not tell me what he wanted to do in a Package, I did not 
add much there, so that all Services are shown as directories now. The 
only binding I implemented was for the ZPTTemplate, which works fine so
that you can add ZPTs via VFS now. I could imagine doing the same for 
Module, but other than that Package is rather boring from a VFS point of
view.

Of course we could do some "magic" and display a text (file content) 
representation of the various services, but I do not know how useful this 
would be.


=== Added File Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/IPackageAdding.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.
# 
##############################################################################
"""IPackageAdding 

$Id: IPackageAdding.py,v 1.1 2002/12/23 08:15:38 srichter Exp $
"""
from Zope.App.OFS.Container.IAdding import IAdding

class IPackageAdding(IAdding):
    """The Package Adding is special, since it is not part of the content
    namespace, but has a similar functionality as a Folder. Therefore there
    are views that overlap; this interface was created so that there are no
    configuration conflicts."""



=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/configure.zcml 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/configure.zcml:1.10	Thu Dec 19 15:38:25 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/configure.zcml	Mon Dec 23 03:15:38 2002
@@ -106,6 +106,7 @@
   </content>
 
   
-  <include package="Zope.App.OFS.Services.ServiceManager.Browser" />
+  <include package=".Browser" />
+  <include package=".VFS" />
 
 </zopeConfigure>