[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - configure.zcml:1.7 contents.py:1.8

Jim Fulton jim@zope.com
Fri, 7 Feb 2003 10:49:08 -0500


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

Modified Files:
	configure.zcml contents.py 
Log Message:
Cleaned up the layout of the browser configuration a bit.
Moved some container traversal browser configs from zope.app.container
to zope.app.browser.



=== Zope3/src/zope/app/browser/container/configure.zcml 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/container/configure.zcml:1.6	Tue Dec 31 13:26:51 2002
+++ Zope3/src/zope/app/browser/container/configure.zcml	Fri Feb  7 10:48:37 2003
@@ -1,9 +1,6 @@
-<zopeConfigure
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:browser='http://namespaces.zope.org/browser'
-   >
+<zopeConfigure xmlns='http://namespaces.zope.org/browser'>
    
-   <browser:view
+   <view
        for="zope.app.interfaces.container.IContentContainer"
        name="+"  
        class="zope.app.browser.container.adding.Adding"
@@ -11,19 +8,19 @@
        allowed_attributes="addingInfo"
        >
 
-       <browser:page name="index.html"  template="add.pt" />
-       <browser:page name="action.html" attribute="action" />
+       <page name="index.html"  template="add.pt" />
+       <page name="action.html" attribute="action" />
    
-       </browser:view>
+       </view>
 
-  <browser:menuItem
+  <menuItem
       for="zope.app.interfaces.container.IWriteContainer"
       menu="zmi_actions"
       title="Add"
       action="+"
       />
 
-  <browser:page
+  <page
       for="zope.app.interfaces.container.IReadContainer"
       name="find.html" 
       menu="zmi_actions"


=== Zope3/src/zope/app/browser/container/contents.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.7	Fri Jan 31 05:51:45 2003
+++ Zope3/src/zope/app/browser/container/contents.py	Fri Feb  7 10:48:37 2003
@@ -86,6 +86,15 @@
 
         return self._index()
 
+class JustContents(Contents):
+    """Like Contents, but does't delegate to item named index.html
+    """
+
+    def index(self):
+        return self._index()
+    
+
+
 # XXX L10N Below is prime material for localization.
 # We are a touchpoint that should contact the personalization
 # service so that users can see datetime and decimals