[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/CachingService/Views/Browser - Adding.py:1.1 __init__.py:1.1 configure.zcml:1.1

Marius Gedminas mgedmin@codeworks.lt
Thu, 3 Oct 2002 07:56:34 -0400


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

Added Files:
	Adding.py __init__.py configure.zcml 
Log Message:
The beginning of a caching service

=== Added File Zope3/lib/python/Zope/App/OFS/Services/CachingService/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/10/03 11:56:33 mgedmin Exp $
"""

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

class Adding(ContentAdding):
    """Adding component for service containers"""

    menu_id = "add_cache"


=== Added File Zope3/lib/python/Zope/App/OFS/Services/CachingService/Views/Browser/__init__.py ===
##############################################################################
#
# Copyright (c) 2001, 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.
# 
##############################################################################
"""Caching service browser views.

$Id: __init__.py,v 1.1 2002/10/03 11:56:33 mgedmin Exp $
"""



=== Added File Zope3/lib/python/Zope/App/OFS/Services/CachingService/Views/Browser/configure.zcml ===
<zopeConfigure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser"
   package="Zope.App.OFS.Services.CachingService">

<!-- Handle all Caching Service configuration -->

  <browser:menu id="add_cache"
      title="Menu for adding new caches." />

  <browser:defaultView
     for=".CachingService.ILocalCachingService"
     name="index.html" />

  <browser:view
     permission="Zope.ManageServices"
     for=".CachingService.ILocalCachingService"
     factory="Zope.App.OFS.Container.Views.Browser.Contents.">

     <browser:page name="index.html" attribute="index" />

  </browser:view>

  <browser:view
      name="+"
      for=".CachingService.ILocalCachingService"
      permission="Zope.ManageContent"
      factory=".Views.Browser.Adding." >

    <browser:page name="index.html"  attribute="index" />
    <browser:page name="action.html" attribute="action" />

  </browser:view>

  <browser:menuItem menu="add_component" for="Zope.App.OFS.Container.IAdding."
       action="CachingService"  title="Caching Service"
       description="A Persistent Caching Service for TTW
       development"
       />

  <!-- Handle all generic Cache configuration -->

<!-- TODO

  <browser:defaultView for="Zope.App.Caching.ICache."
      name="editForm.html" />

  <browser:view
      for="Zope.App.Caching.ICache."
      permission="Zope.View"
      factory=".Views.Browser.Caching.">
    <browser:page name="editForm.html"
        template="Views/Browser/caching.pt" />
    <browser:page name="edit.html" attribute="edit" />
  </browser:view>

  <browser:menuItems menu="zmi_views" for="Zope.App.Caching.ICache.">
    <browser:menuItem title="Edit" action="editForm.html"/>
  </browser:menuItems>

  -->

</zopeConfigure>