[Zope3-checkins] CVS: Zope3/src/zope/app/browser - introspector.zcml:1.1.2.1 menus.zcml:1.1.2.1 onlinehelp.zcml:1.1.2.1 traversal.zcml:1.1.2.1 undo.zcml:1.1.2.1 configure.zcml:1.14.2.1 gadflyda.py:NONE rdb.py:NONE rdbadd.pt:NONE rdbconnection.pt:NONE rdbtestresults.pt:NONE rdbtestsql.pt:NONE

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:41:57 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	configure.zcml 
Added Files:
      Tag: paris-copypasterename-branch
	introspector.zcml menus.zcml onlinehelp.zcml traversal.zcml 
	undo.zcml 
Removed Files:
      Tag: paris-copypasterename-branch
	gadflyda.py rdb.py rdbadd.pt rdbconnection.pt 
	rdbtestresults.pt rdbtestsql.pt 
Log Message:
Updating from HEAD to make sure everything still works before merging

=== Added File Zope3/src/zope/app/browser/introspector.zcml ===
<zopeConfigure xmlns='http://namespaces.zope.org/browser'>
<!-- Introspection -->

  <!-- XXX wrong perm  -->
  <page
      name="classBrowser.html"
      for = "zope.interface.Interface"
      permission="zope.View" 
      template="introspector.pt"
      class="zope.app.browser.introspector.IntrospectorView"
      />

  <menuItem 
      for = "zope.interface.Interface" 
      title="Introspector" 
      menu="zmi_views" 
      action="classBrowser.html"
      />


  <page
      name="index.html"
      for="zope.interface.interfaces.IInterface"
      permission="zope.View"
      template="introspector.pt"
      class="zope.app.browser.introspector.IntrospectorView"
      /> 

</zopeConfigure>


=== Added File Zope3/src/zope/app/browser/menus.zcml ===
<zopeConfigure xmlns="http://namespaces.zope.org/browser">

    <menu 
       id="zmi_views" 
       title="Menu for displaying alternate representations of an object"
       />

    <menu
       id="zmi_actions" 
       title="Menu for displaying actions to be performed"
       />

   <menu
        id="add_content"
        title="Menu of objects to be added to content folders"
        />

   <menu
        id="add_component"
        title="Menu of objects to be added to service manager packages"
        />

   <menu id="add_configuration"
        title="Menu of addable configuration objects"
        />

  <!-- Management view selector -->
  <!-- Get first accessable item from zmi_views menu -->
  <page
     for="*"
     name="SelectedManagementView.html"
     permission="zope.Public"
     class=".managementviewselector.ManagementViewSelector" 
     allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
     />

  <!-- Make manage an alias for same -->
  <page
     for="*"
     name="manage"
     permission="zope.ManageContent"
     class=".managementviewselector.ManagementViewSelector" 
     allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
     />

  <!-- Menu access -->
  <page
     for="*"
     name="view_get_menu"
     permission="zope.Public"
     class=".menu.MenuAccessView" 
     allowed_interface="zope.app.interfaces.browser.menu.IMenuAccessView"
     />

</zopeConfigure>


=== Added File Zope3/src/zope/app/browser/onlinehelp.zcml ===
<zopeConfigure xmlns="http://namespaces.zope.org/browser">

<!-- OnlineHelp -->

  <page
      for="*"
      name="find_help_topics"
      class=".onlinehelp.FindRelevantHelpTopics"
      permission="zope.Public"
      allowed_attributes="__call__" 
      />

  <page
      name="+"
      for="zope.app.interfaces.onlinehelp.IOnlineHelpTopic"
      permission="zope.View"
      template="onlinehelptopic.pt"
      class="zope.app.browser.onlinehelp.OnlineHelpTopicView"
      />

  <page
      name="index.html"
      for="zope.app.interfaces.onlinehelp.IOnlineHelpTopic"
      permission="zope.View"
      template="onlinehelptopic.pt"
      class="zope.app.browser.onlinehelp.OnlineHelpTopicView"
      /> 

</zopeConfigure>


=== Added File Zope3/src/zope/app/browser/traversal.zcml ===
<zopeConfigure xmlns='http://namespaces.zope.org/browser'>

<page 
    name="_traverse" 
    for="zope.interface.Interface"
    class="zope.app.publication.traversers.SimpleComponentTraverser" 
    permission="zope.Public"
    />

<view 
    name="_traverse" 
    for="zope.app.interfaces.content.file.IFileContent"
    class="zope.app.publication.traversers.FileContentTraverser" 
    permission="zope.Public"
    />

<page
    name="_traverse" 
    for="zope.app.interfaces.container.IItemContainer"
    class="zope.app.container.traversal.ItemTraverser" 
    permission="zope.Public"
    />

<page
    name="_traverse" 
    for="zope.app.interfaces.container.ISimpleReadContainer"
    class="zope.app.container.traversal.ContainerTraverser" 
    permission="zope.Public"
    />

<page
    for="*"
    name="absolute_url"
    class=".absoluteurl.AbsoluteURL"
    permission="zope.Public"
    allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL" 
    />

<page
    for="zope.app.interfaces.content.folder.IRootFolder"
    name="absolute_url"
    class=".absoluteurl.SiteAbsoluteURL"
    permission="zope.Public"
    allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL" 
    />

<page
    for="*"
    name="object_name"
    class=".objectname.ObjectNameView"
    permission="zope.Public"
    allowed_interface="zope.app.interfaces.traversing.IObjectName" 
    />

<page
    for="zope.app.interfaces.content.folder.IRootFolder"
    name="object_name"
    class=".objectname.SiteObjectNameView"
    permission="zope.Public"
    allowed_interface="zope.app.interfaces.traversing.IObjectName" 
    />

</zopeConfigure>


=== Added File Zope3/src/zope/app/browser/undo.zcml ===
<zopeConfigure xmlns="http://namespaces.zope.org/browser">

<!-- Undo -->

  <pages
      for="*"
      permission="zope.ManageContent"
      class="zope.app.browser.undo.Undo" >

     <page name="undoForm.html" attribute="index" />
     <page name="undo.html" attribute="action" />
     </pages>

  <menuItem
      for="*"
      menu="zmi_actions"
      title="Undo"
      action="@@undoForm.html"
      />

</zopeConfigure>


=== Zope3/src/zope/app/browser/configure.zcml 1.14 => 1.14.2.1 ===
--- Zope3/src/zope/app/browser/configure.zcml:1.14	Tue Jan  7 07:27:40 2003
+++ Zope3/src/zope/app/browser/configure.zcml	Tue Feb 11 09:40:55 2003
@@ -1,68 +1,8 @@
 <zopeConfigure xmlns="http://namespaces.zope.org/browser">
 
-<!-- Foundational setup -->
-
-  <!-- The default default view -->
-  <defaultView name="index.html" />
-
-
-  <!-- Standard menus -->
-
-    <menu 
-       id="zmi_views" 
-       title="Menu for displaying alternate representations of an object"
-       />
-
-    <menu
-       id="zmi_actions" 
-       title="Menu for displaying actions to be performed"
-       />
-
-   <menu
-        id="add_content"
-        title="Menu of objects to be added to content folders"
-        />
-
-   <menu
-        id="add_component"
-        title="Menu of objects to be added to service manager packages"
-        />
-
-   <menu id="add_configuration"
-        title="Menu of addable configuration objects"
-        />
-
-
-  <!-- Management view selector -->
-  <!-- Get first accessable item from zmi_views menu -->
-  <page
-     for="*"
-     name="SelectedManagementView.html"
-     permission="zope.Public"
-     class=".managementviewselector.ManagementViewSelector" 
-     allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
-     />
-
-  <!-- Make manage an alias for same -->
-  <page
-     for="*"
-     name="manage"
-     permission="zope.ManageContent"
-     class=".managementviewselector.ManagementViewSelector" 
-     allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
-     />
-
-  <!-- Menu access -->
-  <page
-     for="*"
-     name="view_get_menu"
-     permission="zope.Public"
-     class=".menu.MenuAccessView" 
-     allowed_interface="zope.app.interfaces.browser.menu.IMenuAccessView"
-     />
-
-<!-- includes -->
+<defaultView name="index.html" />
 
+<include file="menus.zcml" />
 <include package=".applicationcontrol" />
 <include package=".cache" />
 <include package=".component" />
@@ -74,164 +14,12 @@
 <include package=".services" />
 <include package=".skins" />
 <include package=".index" />
+<include package=".rdb" />
+<include file="onlinehelp.zcml" />
+<include file="introspector.zcml" />
+<include file="traversal.zcml" />
+<include file="undo.zcml" />
 
-<!-- OnlineHelp -->
-
-  <page
-      for="*"
-      name="find_help_topics"
-      class=".onlinehelp.FindRelevantHelpTopics"
-      permission="zope.Public"
-      allowed_attributes="__call__" 
-      />
-
-  <!-- XXX: This sucks. You cannot define a content type without making
-            a '+' view, since some menu code will complain otherwise. -->    
-  <page
-      name="+"
-      for="zope.app.interfaces.onlinehelp.IOnlineHelpTopic"
-      permission="zope.View"
-      template="onlinehelptopic.pt"
-      class="zope.app.browser.onlinehelp.OnlineHelpTopicView"
-      />
-
-  <page
-      name="index.html"
-      for="zope.app.interfaces.onlinehelp.IOnlineHelpTopic"
-      permission="zope.View"
-      template="onlinehelptopic.pt"
-      class="zope.app.browser.onlinehelp.OnlineHelpTopicView"
-      /> 
-
-<!-- Introspection -->
-
-  <!-- XXX wrong perm  -->
-  <page
-      name="classBrowser.html"
-      for = "zope.interface.Interface"
-      permission="zope.View" 
-      template="introspector.pt"
-      class="zope.app.browser.introspector.IntrospectorView"
-      />
-
-  <menuItem 
-      for = "zope.interface.Interface" 
-      title="Introspector" 
-      menu="zmi_views" 
-      action="classBrowser.html"
-      />
-
-
-  <page
-      name="index.html"
-      for="zope.interface.interfaces.IInterface"
-      permission="zope.View"
-      template="introspector.pt"
-      class="zope.app.browser.introspector.IntrospectorView"
-      /> 
-
-<!-- Gadfly DA -->
-
-  <view
-      name="zope.app.rdb.gadflyda.GadflyAdapter"
-      for="zope.app.interfaces.container.IAdding"
-      class="zope.app.browser.gadflyda.GadflyDAAddView"
-      permission="zope.ManageServices">
-
-    <page name="+" attribute="add" />
-    <page name="action.html" attribute="action" />
-
-    </view>
-
-  <menuItem menu="add_component"
-      for="zope.app.interfaces.container.IAdding"
-      title="Gadfly DA" 
-      action="zope.app.rdb.gadflyda.GadflyAdapter"
-      description="A Gadfly Database Adapter"/>
-
-<!-- ZopeDatabaseAdapter default views -->
-
-  <defaultView for="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
-               name="editForm.html" />
-
-  <menuItems menu="zmi_views"
-         for="zope.app.interfaces.rdb.IZopeDatabaseAdapter">
-    <menuItem title="Edit" action="editForm.html"/>
-    <menuItem title="Test" action="testForm.html"/>
-    </menuItems>
-
-  <pages
-      for="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
-      permission="zope.View"
-      class="zope.app.browser.rdb.Connection"
-      >
-    <page name="editForm.html"
-        template="rdbconnection.pt" />
-    <page name="edit.html" attribute="edit" />
-    <page name="connect.html" attribute="connect" />
-    <page name="disconnect.html" attribute="disconnect" />
-  
-    </pages>
-
-  <pages
-      for="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
-      permission="zope.View"
-      class="zope.app.browser.rdb.TestSQL"
-      >
-    <page name="testForm.html" template="rdbtestsql.pt" />
-    <page name="test.html" template="rdbtestresults.pt" />
-
-    </pages>
-
-<!-- Undo -->
-
-  <pages
-      for="*"
-      permission="zope.ManageContent"
-      class="zope.app.browser.undo.Undo" >
-
-     <page name="undoForm.html" attribute="index" />
-     <page name="undo.html" attribute="action" />
-     </pages>
-
-  <menuItem
-      for="*"
-      menu="zmi_actions"
-      title="Undo"
-      action="@@undoForm.html"
-      />
-<!-- URLs and names -->
-
-<page
-    for="*"
-    name="absolute_url"
-    class=".absoluteurl.AbsoluteURL"
-    permission="zope.Public"
-    allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL" 
-    />
-
-<page
-    for="zope.app.interfaces.content.folder.IRootFolder"
-    name="absolute_url"
-    class=".absoluteurl.SiteAbsoluteURL"
-    permission="zope.Public"
-    allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL" 
-    />
-
-<page
-    for="*"
-    name="object_name"
-    class=".objectname.ObjectNameView"
-    permission="zope.Public"
-    allowed_interface="zope.app.interfaces.traversing.IObjectName" 
-    />
-
-<page
-    for="zope.app.interfaces.content.folder.IRootFolder"
-    name="object_name"
-    class=".objectname.SiteObjectNameView"
-    permission="zope.Public"
-    allowed_interface="zope.app.interfaces.traversing.IObjectName" 
-    />
+<include package=".exception" />
 
 </zopeConfigure>

=== Removed File Zope3/src/zope/app/browser/gadflyda.py ===

=== Removed File Zope3/src/zope/app/browser/rdb.py ===

=== Removed File Zope3/src/zope/app/browser/rdbadd.pt ===

=== Removed File Zope3/src/zope/app/browser/rdbconnection.pt ===

=== Removed File Zope3/src/zope/app/browser/rdbtestresults.pt ===

=== Removed File Zope3/src/zope/app/browser/rdbtestsql.pt ===