[Zope3-checkins] SVN: Zope3/branches/roger-bostonskin2/src/zope/app/boston/ Cleanup and some restructuring:

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Oct 31 18:20:18 EST 2005


Log message for revision 39800:
  Cleanup and some restructuring:
  
  - Converted TAB characters to spaces.
  
  - Switched from DOS line endings to Unix ones.
  
  - Collapsed individual viewlet browser packages to root viewlet folder. I 
    might even do some more of this..
  
  - Removed trailing white space.
  
  

Changed:
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/README.txt
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/__init__.py
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/boston.js
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/configure.zcml
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/ftests.py
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/skin.css
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/template.pt
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/widget_macros.pt
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/configure.zcml
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/ftests.py
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/__init__.py
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/__init__.py
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser/
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser.py
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/configure.zcml
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/interfaces.py
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/viewlet.pt
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml
  U   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/configure.zcml
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser.py
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/configure.zcml
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/macros.pt
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/toolbar.css
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/toolbarGrip.gif
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/viewlet.pt
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/__init__.py
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/configure.zcml
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/xmltree.css
  A   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/xmltree.pt
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.css
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt
  D   Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml

-=-
Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/README.txt
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/README.txt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/README.txt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -4,7 +4,7 @@
 
 The Boston skin is a new UI for the Zope Management Interface called ZMI.
 Feel free to write comments, ideas and wishes to the zope3-dev mailinglist.
- 
+
     >>> from zope.testbrowser import Browser
     >>> browser = Browser()
     >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/__init__.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/__init__.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/__init__.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -59,7 +59,8 @@
 
     def sort(self, viewlets):
         """Sort the viewlets on their weight."""
-        return sorted(viewlets, lambda x, y: cmp(x[1].getWeight(), y[1].getWeight()))
+        return sorted(viewlets,
+                      lambda x, y: cmp(x[1].getWeight(), y[1].getWeight()))
 
 
 class OrderedViewlet(viewlet.ViewletBase):

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/boston.js
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/boston.js	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/boston.js	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,66 +1,66 @@
-//----------------------------------------------------------------------------
-// Copyright (c) 2005 Zope Corporation and Contributors.
-// All Rights Reserved.
-//
-// This software is subject to the provisions of the Zope Public License,
-// Version 2.1 (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.
-//----------------------------------------------------------------------------
-
-//----------------------------------------------------------------------------
-// popup window with settings 
-//----------------------------------------------------------------------------
-function popup(page, name, settings) {
-  win = window.open(page, name, settings);
-  win.focus();
-}
-
-//----------------------------------------------------------------------------
-// guess browser version, feel free to enhance it if needed.
-//----------------------------------------------------------------------------
-var ie = document.all != null;
-var moz = !ie && document.getElementById != null && document.layers == null;
-
-//----------------------------------------------------------------------------
-// change the status (color) of the matrix table used in grant.html
-//----------------------------------------------------------------------------
-function changeMatrix(e) {
-  var ele = e? e: window.event;
-  var id = ele.getAttribute('id');
-  var name = ele.getAttribute('name');
-  if (moz) {
-    var label = ele.parentNode;
-    var center = label.parentNode;
-    var td = center.parentNode;
-  }
-  else {
-    var label = ele.parentElement;
-    var center = label.parentElement;
-    var td = center.parentElement;
-  }
-  resetMatrixCSS(name);
-  if (td.className != "default") {
-    td.className = "changed";
-  }
-}
-
-function resetMatrixCSS(name) {
-  var inputFields = document.getElementsByTagName('input');
-  for (var i = 0; i < inputFields.length; i++) {
-    var field = inputFields[i];
-    if (field.getAttribute('name') == name) {
-      if (moz) {
-        td = field.parentNode.parentNode.parentNode;
-      }
-      else {
-        td = field.parentElement.parentElement.parentElement;
-      }
-      if (td.className != "default") {
-        td.className = "";
-      }
-    }
-  }
-}
+//----------------------------------------------------------------------------
+// Copyright (c) 2005 Zope Corporation and Contributors.
+// All Rights Reserved.
+//
+// This software is subject to the provisions of the Zope Public License,
+// Version 2.1 (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.
+//----------------------------------------------------------------------------
+
+//----------------------------------------------------------------------------
+// popup window with settings
+//----------------------------------------------------------------------------
+function popup(page, name, settings) {
+  win = window.open(page, name, settings);
+  win.focus();
+}
+
+//----------------------------------------------------------------------------
+// guess browser version, feel free to enhance it if needed.
+//----------------------------------------------------------------------------
+var ie = document.all != null;
+var moz = !ie && document.getElementById != null && document.layers == null;
+
+//----------------------------------------------------------------------------
+// change the status (color) of the matrix table used in grant.html
+//----------------------------------------------------------------------------
+function changeMatrix(e) {
+  var ele = e? e: window.event;
+  var id = ele.getAttribute('id');
+  var name = ele.getAttribute('name');
+  if (moz) {
+    var label = ele.parentNode;
+    var center = label.parentNode;
+    var td = center.parentNode;
+  }
+  else {
+    var label = ele.parentElement;
+    var center = label.parentElement;
+    var td = center.parentElement;
+  }
+  resetMatrixCSS(name);
+  if (td.className != "default") {
+    td.className = "changed";
+  }
+}
+
+function resetMatrixCSS(name) {
+  var inputFields = document.getElementsByTagName('input');
+  for (var i = 0; i < inputFields.length; i++) {
+    var field = inputFields[i];
+    if (field.getAttribute('name') == name) {
+      if (moz) {
+        td = field.parentNode.parentNode.parentNode;
+      }
+      else {
+        td = field.parentElement.parentElement.parentElement;
+      }
+      if (td.className != "default") {
+        td.className = "";
+      }
+    }
+  }
+}

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/configure.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/configure.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -2,19 +2,19 @@
     xmlns:zope="http://namespaces.zope.org/zope"
     xmlns="http://namespaces.zope.org/browser">
 
-  <resource 
+  <resource
       name="boston.js"
       file="boston.js"
       layer="zope.app.boston.boston"
       />
 
-  <resource 
+  <resource
       name="skin.css"
       file="skin.css"
       layer="zope.app.boston.boston"
       />
 
-  <resource 
+  <resource
       name="widget.css"
       file="widget.css"
       layer="zope.app.boston.boston"
@@ -57,7 +57,7 @@
       layer="zope.app.boston.boston"
       />
 
-  <resource 
+  <resource
       name="logo.gif"
       file="img/zopelogo.gif"
       layer="zope.app.boston.boston"
@@ -69,10 +69,10 @@
       permission="zope.View"
       class=".standardmacros.StandardMacros"
       allowed_interface="zope.interface.common.mapping.IItemMapping"
-      layer="zope.app.boston.boston" 
+      layer="zope.app.boston.boston"
       />
 
-  <page 
+  <page
       for="*"
       name="skin_macros"
       permission="zope.View"

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/ftests.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/ftests.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/ftests.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -24,55 +24,63 @@
 
 
     def test_addFolder(self):
-        response = self.publish("/++skin++Boston/+/action.html", 
-                                basic='mgr:mgrpw', 
-                                form={'type_name':u'zope.app.content.Folder', 
-                                      'id':u'folder'})
+        response = self.publish(
+            "/++skin++Boston/+/action.html",
+            basic='mgr:mgrpw',
+            form={'type_name':u'zope.app.content.Folder',
+                  'id':u'folder'})
         self.assertEqual(response.getStatus(), 302)
 
-        response = self.publish("/++skin++Boston/folder/+/action.html", 
-                                basic='mgr:mgrpw', 
-                                form={'type_name':u'zope.app.content.Folder', 
-                                      'id':u'subfolder'})
+        response = self.publish(
+            "/++skin++Boston/folder/+/action.html",
+            basic='mgr:mgrpw',
+            form={'type_name':u'zope.app.content.Folder',
+                  'id':u'subfolder'})
         self.assertEqual(response.getStatus(), 302)
 
     def test_addSiteManager(self):
-        response = self.publish("/++skin++Boston/+/action.html", 
-                                basic='mgr:mgrpw', 
-                                form={'type_name':u'zope.app.content.Folder', 
-                                      'id':u'folder'})
+        response = self.publish(
+            "/++skin++Boston/+/action.html",
+            basic='mgr:mgrpw',
+            form={'type_name':u'zope.app.content.Folder',
+                  'id':u'folder'})
         self.assertEqual(response.getStatus(), 302)
 
-        response = self.publish("/++skin++Boston/folder/+/action.html", 
-                                basic='mgr:mgrpw', 
-                                form={'type_name':u'zope.app.content.Folder', 
-                                      'id':u'subsite'})
+        response = self.publish(
+            "/++skin++Boston/folder/+/action.html",
+            basic='mgr:mgrpw',
+            form={'type_name':u'zope.app.content.Folder',
+                  'id':u'subsite'})
         self.assertEqual(response.getStatus(), 302)
 
         response = self.publish(
-            "/++skin++Boston/folder/subsite/addSiteManager.html", 
+            "/++skin++Boston/folder/subsite/addSiteManager.html",
             basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 302)
 
     def test_css_pagelets(self):
         response = self.publish('/++skin++Boston/', basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
-        self.assert_(response.getBody().find('href="http://localhost/++skin++Boston/@@/skin.css"') != -1)
-        self.assert_(response.getBody().find('href="http://localhost/++skin++Boston/@@/widget.css"') != -1)
+        self.assert_(response.getBody().find(
+            'href="http://localhost/++skin++Boston/@@/skin.css"') != -1)
+        self.assert_(response.getBody().find(
+            'href="http://localhost/++skin++Boston/@@/widget.css"') != -1)
 
     def test_javascrip_pagelets(self):
         response = self.publish('/++skin++Boston/', basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
-        self.assert_(response.getBody().find('src="http://localhost/++skin++Boston/@@/boston.js"') != -1)
+        self.assert_(response.getBody().find(
+            'src="http://localhost/++skin++Boston/@@/boston.js"') != -1)
 
     def test_left_boxes(self):
         # Add a folder
-        response = self.publish("/++skin++Boston/+/action.html",
-                                basic='mgr:mgrpw', 
-                                form={'type_name':u'zope.app.content.Folder', 
-                                      'id':u'folder'})
+        response = self.publish(
+            "/++skin++Boston/+/action.html",
+            basic='mgr:mgrpw',
+            form={'type_name':u'zope.app.content.Folder',
+                  'id':u'folder'})
         self.assertEqual(response.getStatus(), 302)
-        
+
         response = self.publish('/++skin++Boston/', basic='mgr:mgrpw')
         self.assertEqual(response.getStatus(), 200)
 
@@ -83,7 +91,6 @@
         self.assert_(response.getBody().find('id="addinginfo"') != -1)
 
 
-
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(TestBostonSkin))

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/skin.css
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/skin.css	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/skin.css	2005-10-31 23:20:17 UTC (rev 39800)
@@ -4,7 +4,7 @@
 */
 
 
-/* Basic Elements 
+/* Basic Elements
 */
 html {
 	height: 100%;
@@ -114,7 +114,7 @@
 }
 
 dt {
-    font-weight: bold;    
+    font-weight: bold;
 }
 
 dd {
@@ -286,7 +286,7 @@
 }
 
 
-/* navigation area 
+/* navigation area
 */
 #navigation {
     width: 200px;
@@ -462,7 +462,7 @@
 }
 
 
-/* footer area 
+/* footer area
 */
 #footer {
     float: left;
@@ -533,11 +533,11 @@
     text-decoration: underline;
 }
 
-div.page_error {  
+div.page_error {
     font: 100% Verdana, Helvetica, Arial, sans-serif;
     background: #F29F9F;
-    border: 1px solid #A51212; 
-    padding: 2px 5px; 
-    margin: 0px 0px 10px 0px; 
-    vertical-align: middle; 
+    border: 1px solid #A51212;
+    padding: 2px 5px;
+    margin: 0px 0px 10px 0px;
+    vertical-align: middle;
 }

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/template.pt
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/template.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/template.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,17 +1,17 @@
 <metal:block define-macro="page"><metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></metal:block>
 
-<html xmlns="http://www.w3.org/1999/xhtml" 
-      xml:lang="en" lang="en" 
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xml:lang="en" lang="en"
       i18n:domain="zope">
-<head> 
+<head>
   <title metal:define-slot="title"
          tal:content="string:Zope 3: ${context/zope:title_or_name}">
     Zope 3: title
   </title>
 
   <!-- head viewlets -->
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-	<tal:block replace="structure provider:zope.app.boston.IHead" />
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+        <tal:block replace="structure provider:zope.app.boston.IHead" />
   <metal:block define-slot="headers"></metal:block>
 
   <!-- css viewlets -->
@@ -22,12 +22,12 @@
   <tal:block replace="structure provider:zope.app.boston.IJavaScript" />
   <metal:block define-slot="ecmascript_slot"></metal:block>
 
-  <link rel="icon" type="image/png" 
+  <link rel="icon" type="image/png"
         tal:attributes="href context/++resource++favicon.png" />
 </head>
 
 <body tal:attributes="onload body_onload | nothing"
-			tal:define="global rooturl request/getApplicationURL;
+                        tal:define="global rooturl request/getApplicationURL;
                   global thisbaseurl request/URL/-1">
 
   <table id="layout">
@@ -36,18 +36,16 @@
         <!-- toolbar region (zmi_action) -->
         <tal:block replace="structure provider:zope.app.boston.IToolBar" />
         <div id="userDetails" metal:define-slot="user_details">
-					<metal:block define-macro="logged_user">
-						<span tal:omit-tag="" i18n:translate="">User:</span>
-						<tal:block replace="request/principal/title">
-							User
-						</tal:block>
-					</metal:block>
-					<metal:block define-slot="login_logout">
-						<metal:macro define-macro="login_logout">
-						<tal:block content="structure context/@@login_logout" />
-						</metal:macro>
-					</metal:block>
-      </div>
+          <metal:block define-macro="logged_user">
+            <span tal:omit-tag="" i18n:translate="">User:</span>
+            <tal:block replace="request/principal/title">User</tal:block>
+          </metal:block>
+          <metal:block define-slot="login_logout">
+            <metal:macro define-macro="login_logout">
+              <tal:block content="structure context/@@login_logout" />
+            </metal:macro>
+          </metal:block>
+        </div>
       </td>
     </tr>
     <tr class="head">
@@ -61,16 +59,16 @@
           <tal:block repeat="breadcrumb context/@@absolute_url/breadcrumbs">
             <a href=""
                tal:condition="repeat/breadcrumb/start"
-               tal:attributes="href 
+               tal:attributes="href
                     string:${breadcrumb/url}/@@SelectedManagementView.html"
                i18n:translate="">[top]</a>
             <a href=""
                tal:condition="not:repeat/breadcrumb/start"
                tal:content="string:${breadcrumb/name}"
-               tal:attributes="href 
+               tal:attributes="href
                     string:${breadcrumb/url}/@@SelectedManagementView.html"
                >breadcrumb item</a>
-            / 
+            /
           </tal:block>
         </div>
       </td>
@@ -78,22 +76,22 @@
     <tr class="content">
       <td id="navigation" class="navigation">
         <div id="slotbox">
-        	<tal:block replace="structure provider:zope.app.boston.ILeft" />
+                <tal:block replace="structure provider:zope.app.boston.ILeft" />
         </div>
       </td>
       <td id="content">
         <!-- context menu (zmi_views) just visible in view template -->
-				<div id="contextmenu"
-							tal:define="views context/@@view_get_menu/zmi_views"
-							tal:condition="views">
-					<span tal:repeat="view views">
-						<a href="" 
-							 tal:attributes="href view/action;
-															 class view/selected;"
-							 tal:content="view/title"
-							 i18n:translate="">label</a>
-					</span>
-				</div>
+        <div id="contextmenu"
+             tal:define="views context/@@view_get_menu/zmi_views"
+             tal:condition="views">
+          <span tal:repeat="view views">
+            <a href=""
+               tal:attributes="href view/action;
+                               class view/selected;"
+               tal:content="view/title"
+               i18n:translate="">label</a>
+          </span>
+        </div>
         <!-- content area -->
         <div metal:define-slot="message" id="message" />
         <div id="body" metal:define-slot="body">

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/widget_macros.pt
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/widget_macros.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/browser/widget_macros.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -10,16 +10,18 @@
                 <div class="label">
                   <label for="field.name" title="The widget's hint"
                        tal:attributes="for widget/name; title widget/hint"
-                       tal:content="widget/label" i18n:translate="">The Label</label>
+                       tal:content="widget/label" i18n:translate="">
+                    The Label
+                  </label>
                 </div>
               </td>
               <td class="fields">
                 <div class="field" tal:content="structure widget">
                   <input type="text" style="width:100%" />
                 </div>
-                <div class="error" 
+                <div class="error"
                      tal:define="error widget/error"
-                     tal:condition="error" 
+                     tal:condition="error"
                      tal:content="structure error">
                   The Error
                 </div>

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/configure.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/configure.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -5,12 +5,12 @@
     xmlns:zcml="http://namespaces.zope.org/zcml"
     i18n_domain="zope">
 
-  <layer 
+  <layer
       name="boston"
       interface="zope.app.boston.boston"
-      />  
+      />
 
-  <skin 
+  <skin
       name="Boston"
       interface="zope.app.boston.Boston"
       />
@@ -53,11 +53,9 @@
       permission="zope.Public"
       />
 
-
   <include package=".viewlets" />
   <include package=".browser" />
 
-
   <configure zcml:condition="have onlinehelp">
     <help:register
         id="boston"
@@ -66,5 +64,5 @@
         class="zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic"
         />
   </configure>
-    
+
 </configure>

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/ftests.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/ftests.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/ftests.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -13,7 +13,7 @@
 ##############################################################################
 """Functional Tests for Boston skin.
 
-$Id:$
+$Id$
 """
 import unittest
 

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/__init__.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/__init__.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/__init__.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,17 +1 @@
-##############################################################################
-#
-# Copyright (c) 2005 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-"""Boston skin viewlets
-
-$Id$
-"""
+# Make a pacakge.

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/__init__.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/__init__.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/__init__.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,18 +1 @@
-##############################################################################
-#
-# Copyright (c) 2005 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-"""Boston skin
-
-$Id$
-"""
-    
+# Make a package.

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser.py (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser/views.py)

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/configure.zcml (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,15 @@
+<configure
+    xmlns="http://namespaces.zope.org/browser">
+
+  <viewlet
+      name="addinginfo"
+      for="zope.app.container.interfaces.IWriteContainer"
+      manager="zope.app.boston.ILeft"
+      permission="zope.ManageContent"
+      class=".browser.AddingInfoViewlet"
+      template="viewlet.pt"
+      layer="zope.app.boston.boston"
+      weight="2"
+      />
+
+</configure>
\ No newline at end of file

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/interfaces.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/interfaces.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/interfaces.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -11,17 +11,15 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Boston skin
+"""Boston skin - Adding Info Viewlet
 
 $Id$
 """
-
 __docformat__ = "reStructuredText"
 
 from zope.viewlet.interfaces import IViewlet
 
 
-
 class IAddingInfoViewlet(IViewlet):
     """Adding info API for the adapted context."""
 
@@ -35,4 +33,4 @@
         """
 
     def nameAllowed(self):
-        """Return whether names can be input by the user."""
\ No newline at end of file
+        """Return whether names can be input by the user."""

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/viewlet.pt (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser/viewlet.pt)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/browser/viewlet.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo/viewlet.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,46 @@
+<div metal:define-macro="addinginfo" class="slotbox" id="addinginfo"
+     tal:define="global addingInfo view/addingInfo">
+
+  <div class="header">
+    <div class="title" i18n:translate="">Add</div>
+  </div>
+
+  <div class="body" tal:condition="addingInfo">
+    <span tal:repeat="info addingInfo" tal:omit-tag="">
+      <div class="even"
+           tal:define="namesRequired view/nameAllowed;
+                       oddrow repeat/info/odd;
+                       has_custom_add_view python:'has_custom_add_view' in info"
+           tal:attributes="
+               class python:oddrow and 'content even' or 'content odd'">
+        <a href="#"
+            tal:define="baseurl python:request.getURL(1)"
+            tal:condition="python: not info['action'].startswith('../')
+                            and namesRequired and not has_custom_add_view"
+            tal:attributes="
+                href string:${baseurl}/@@contents.html?type_name=${info/action};
+                class info/selected"
+            tal:content="info/title" i18n:translate="">Folder
+        </a>
+
+        <a href="#"
+            tal:define="baseurl python:request.getURL(1)"
+            tal:condition="python: not info['action'].startswith('../')
+                       and (has_custom_add_view or not namesRequired)"
+            tal:attributes="
+                href string:${baseurl}/@@+/action.html?type_name=${info/action};
+                            class info/selected"
+            tal:content="info/title" i18n:translate="">Folder
+        </a>
+
+        <a href="#"
+            tal:define="baseurl python:request.getURL(1)"
+            tal:condition="python: info['action'].startswith('../')"
+            tal:attributes="href python: info['action'][3:];
+                            class info/selected"
+            tal:content="info/title" i18n:translate="">Folder
+        </a>
+      </div>
+    </span>
+  </div>
+</div>
\ No newline at end of file

Deleted: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/addinginfo.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,17 +0,0 @@
-<configure
-    xmlns:zope="http://namespaces.zope.org/zope"
-    xmlns="http://namespaces.zope.org/browser"
-    i18n_domain="zope">
-
-  <viewlet
-      name="addinginfo"
-      for="zope.app.container.interfaces.IWriteContainer"
-      manager="zope.app.boston.ILeft"
-      permission="zope.ManageContent"
-      class=".addinginfo.browser.views.AddingInfoViewlet"
-      template="addinginfo/browser/viewlet.pt"
-      layer="zope.app.boston.boston"
-      weight="2"
-      />
-
-</configure>
\ No newline at end of file

Modified: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/configure.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/configure.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -3,10 +3,10 @@
     xmlns:browser="http://namespaces.zope.org/browser">
 
   <!-- ToolBar viewlets -->
-  <include file="toolbar.zcml" />
-  
+  <include package=".toolbar" />
+
   <!-- Left viewlets -->
-  <include file="xmltree.zcml" />
-  <include file="addinginfo.zcml" />
+  <include package=".xmltree" />
+  <include package=".addinginfo" />
 
 </configure>

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser.py (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/views.py)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/views.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,63 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Boston skin toolbar
+
+$Id$
+"""
+
+from zope.interface import implements
+
+from zope.app.zapi import queryMultiAdapter
+
+from zope.app.i18n import ZopeMessageFactory as _
+from zope.app.boston.viewlets.toolbar.interfaces import IToolBarViewlet
+from zope.app.publisher.browser.menu import getMenu
+
+
+class ToolBarViewletManager(object):
+    """Toolbar viewlet manager."""
+
+    def macros(self, name):
+        """Use macros in the template as layout components.
+
+        Macros are the fastest way to render page templates, they ensure that
+        everything get procesed at once in the TAL engine. Aloso offer macros
+        in this implementation different layout parts where we use in different
+        places, even in a iteration do we use layout macros. All this can't  be
+        really done in viewlets itself. Btw, macros are a base concept for
+        apply layout to different page template areas. They are developed for
+        this usecase. Viewlets are used for apply the strucutre.
+        The combination of macros and viewlets is the best way I can think
+        about right now. It will offer at least a minimum of overhead and a
+        maximum of flexibility for complex structure and layout task like
+        render this nested menu structure.
+        """
+        return self.template.macros[name]
+
+    def render(self):
+        """See zope.contentprovider.interfaces.IContentProvider"""
+        # Now render the view without the template
+        return u'\n'.join([viewlet.render() for viewlet in self.viewlets])
+
+
+class ToolBarViewlet(object):
+    """I18n info viewlet."""
+
+    implements(IToolBarViewlet)
+
+    def macros(self, name):
+        return self.manager.macros(name)
+
+    def menus(self, menuId):
+        return getMenu(menuId, self.context, self.request)

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/configure.zcml (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,36 @@
+<configure
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <resource
+      name="toolbar.css"
+      file="toolbar.css"
+      layer="zope.app.boston.boston"
+      />
+
+  <resource
+      name="toolbarGrip.gif"
+      file="toolbarGrip.gif"
+      layer="zope.app.boston.boston"
+      />
+
+  <viewlet
+      name="toolbar-css"
+      for="*"
+      manager="zope.app.boston.ICSS"
+      class="zope.app.boston.BostonToolBarCSSViewlet"
+      permission="zope.Public"
+      layer="zope.app.boston.boston"
+      />
+
+  <viewlet
+      name="toolbar"
+      for="*"
+      manager="zope.app.boston.IToolBar"
+      class=".browser.ToolBarViewlet"
+      template="viewlet.pt"
+      permission="zope.View"
+      layer="zope.app.boston.boston"
+      />
+
+</configure>
\ No newline at end of file

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/macros.pt (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/macros.pt)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/macros.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/macros.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,28 @@
+<!-- topmenu macro, render first level items with class name 'topmenu' -->
+<metal:block define-macro="topmenu">
+	<a href="#" class="topmenu"
+			tal:attributes="href menuitem/action"
+			tal:content="menuitem/title"
+			i18n:translate="">
+	</a>
+</metal:block>
+
+<!-- helpmenu macro, render first level items with class name 'topmenu' -->
+<metal:block define-macro="helpmenu">
+  <a href="#" class="topmenu"
+     tal:define="url string:'${view/__name__}/${menuitem/action}';
+                 name string:'OnlineHelp';
+                 settings string:'height=500
+                                  ,width=950
+                                  ,resizable=1
+                                  ,scrollbars=yes
+                                  ,location=no
+                                  ,status=no
+                                  ,toolbar=no
+                                  ,menubar=no'"
+     tal:attributes="
+         href python:'javascript:popup('+ url + ',' + name + ','+ settings +')'"
+     tal:content="menuitem/title" i18n:translate="">
+    Action name
+  </a>
+</metal:block>

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/toolbar.css (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/toolbar.css)

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/toolbarGrip.gif (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/toolbarGrip.gif)

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/viewlet.pt (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar/browser/viewlet.pt)

Deleted: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/toolbar.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,40 +0,0 @@
-<configure
-    xmlns:zope="http://namespaces.zope.org/zope"
-    xmlns="http://namespaces.zope.org/browser"
-    i18n_domain="tiks">
-
-  <configure package="zope.app.boston.viewlets.toolbar.browser">
-    <resource 
-        name="toolbar.css"
-        file="toolbar.css"
-        layer="zope.app.boston.boston"
-        />
-
-    <resource
-        name="toolbarGrip.gif"
-        file="toolbarGrip.gif"
-        layer="zope.app.boston.boston"
-        />
-
-    <viewlet
-        name="toolbar-css"
-        for="*"
-        manager="zope.app.boston.ICSS"
-        class="zope.app.boston.BostonToolBarCSSViewlet"
-        permission="zope.Public"
-        layer="zope.app.boston.boston"
-        />
-
-    <viewlet
-        name="toolbar"
-        for="*"
-        manager="zope.app.boston.IToolBar"
-        class=".views.ToolBarViewlet"
-        template="viewlet.pt"
-        permission="zope.View"
-        layer="zope.app.boston.boston"
-        />
-
-  </configure>
-
-</configure>
\ No newline at end of file

Added: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/__init__.py
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/__init__.py	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/__init__.py	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1 @@
+# Make a pacakge.


Property changes on: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/configure.zcml (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/configure.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,84 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <configure package="zope.app.rotterdam">
+    <resource
+        name="xmltree.js"
+        file="xmltree.js"
+        layer="zope.app.boston.boston"
+        />
+
+    <resource
+        name="pl.gif"
+        file="pl.gif"
+        layer="zope.app.boston.boston" />
+
+    <resource
+        name="mi.gif"
+        file="mi.gif"
+        layer="zope.app.boston.boston" />
+  </configure>
+
+  <resource
+      name="xmltree.css"
+      file="xmltree.css"
+      layer="zope.app.boston.boston"
+      />
+
+  <viewlet
+      name="xmltree.css"
+      for="*"
+      manager="zope.app.boston.ICSS"
+      class="..BostonXMLTreeCSSViewlet"
+      permission="zope.Public"
+      layer="zope.app.boston.boston"
+      weight="0"
+      />
+
+  <viewlet
+      name="xmltree"
+      for="*"
+      manager="zope.app.boston.IJavaScript"
+      class="..BostonXMLTreeJavaScriptViewlet"
+      permission="zope.View"
+      layer="zope.app.boston.boston"
+      />
+
+  <viewlet
+      name="xmltree"
+      for="*"
+      manager="zope.app.boston.ILeft"
+      class="zope.app.boston.OrderedViewlet"
+      template="xmltree.pt"
+      permission="zope.View"
+      layer="zope.app.boston.boston"
+      weight="1"
+      />
+
+  <pages
+      for="zope.app.container.interfaces.IReadContainer"
+      permission="zope.View"
+      class="zope.app.rotterdam.xmlobject.ReadContainerXmlObjectView"
+      layer="zope.app.boston.boston">
+    <page
+        name="children.xml"
+        attribute="children"
+        />
+    <page
+        name="singleBranchTree.xml"
+        attribute="singleBranchTree"
+        />
+  </pages>
+
+  <page
+      name="singleBranchTree.xml"
+      for="zope.interface.interface.Interface"
+      permission="zope.View"
+      class="zope.app.rotterdam.xmlobject.XmlObjectView"
+      attribute="singleBranchTree"
+      layer="zope.app.boston.boston"
+      />
+
+</configure>

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/xmltree.css (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.css)

Copied: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/xmltree.pt (from rev 39799, Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt)
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree/xmltree.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -0,0 +1,26 @@
+<div class="slotbox" id="xmltree">
+  <div class="header">
+    <div class="title" i18n:translate="">Navigation</div>
+  </div>
+  <div class="body">
+    <metal:tree>
+      <div class="box" id="navigationTree">
+        <h4 i18n:translate="">Navigation</h4>
+        <div xmlns="http://www.zope.org/zope3xmltree"
+             id="navtreecontents"
+             class="body"
+             onclick="treeclicked(event);"
+             i18n:translate="">
+          Loading...
+        </div>
+      </div>
+    </metal:tree>
+    <script type="text/javascript"
+            tal:attributes="language string:JavaScript"
+            tal:define="rooturl request/getApplicationURL;
+                  thisbaseurl request/URL/-1"
+            tal:content="
+              structure string: loadtree('${rooturl}/', '${thisbaseurl}/');;">
+    </script>
+  </div>
+</div>

Deleted: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.css
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.css	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.css	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,34 +0,0 @@
-/*  Styles for xmltree
-*/
-
-#navtreecontents a {
-       cursor: pointer;
-       height: 20px;
-}
-
-#navtreecontents loading {
-       display: block;
-       padding-left: 31px;
-       height: 18px;
-}
-
-#navtreecontents expand {
-       background-repeat: no-repeat;
-       padding-left: 14px;
-       display: inline;
-       cursor: pointer;
-                }
-
-#navtreecontents icon {
-       background-repeat: no-repeat;
-       padding-left: 20px;
-       display: inline;
-       cursor: auto;
-                }
-
-#navtreecontents collection {
-       display: block;
-       margin-left: 10px;
-/*     border: red solid 1pt;  */
-       height: auto;
-}
\ No newline at end of file

Deleted: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.pt	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,26 +0,0 @@
-<div class="slotbox" id="xmltree">
-	<div class="header"> 
-		<div class="title" i18n:translate="">Navigation</div>
-	</div>
-	<div class="body">
-		<metal:tree>
-			<div class="box" id="navigationTree">
-				<h4 i18n:translate="">Navigation</h4>
-		<div xmlns="http://www.zope.org/zope3xmltree"
-							id="navtreecontents"
-							class="body"
-							onclick="treeclicked(event);"
-							i18n:translate="">Loading...
-				</div>
-			</div>
-		</metal:tree>
-		<script type="text/javascript"
-						tal:attributes="language string:JavaScript"
-						tal:define="rooturl request/getApplicationURL;
-												thisbaseurl request/URL/-1"
-						tal:content="structure string:
-			loadtree('${rooturl}/', '${thisbaseurl}/');;">
-		</script>
-	</div>
-</div>
-

Deleted: Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml
===================================================================
--- Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml	2005-10-31 22:23:21 UTC (rev 39799)
+++ Zope3/branches/roger-bostonskin2/src/zope/app/boston/viewlets/xmltree.zcml	2005-10-31 23:20:17 UTC (rev 39800)
@@ -1,84 +0,0 @@
-<configure
-    xmlns:zope="http://namespaces.zope.org/zope"
-    xmlns="http://namespaces.zope.org/browser"
-    i18n_domain="zope">
-
-  <configure package="zope.app.rotterdam">
-    <resource 
-        name="xmltree.js" 
-        file="xmltree.js" 
-        layer="zope.app.boston.boston"
-        />
-
-    <resource 
-        name="pl.gif" 
-        file="pl.gif" 
-        layer="zope.app.boston.boston" />
-    
-    <resource 
-        name="mi.gif" 
-        file="mi.gif"
-        layer="zope.app.boston.boston" />
-  </configure>
-
-  <resource 
-      name="xmltree.css"
-      file="xmltree.css"
-      layer="zope.app.boston.boston"
-      />
-
-  <viewlet
-      name="xmltree.css"
-      for="*"
-      manager="zope.app.boston.ICSS"
-      class="..BostonXMLTreeCSSViewlet"
-      permission="zope.Public"
-      layer="zope.app.boston.boston"
-      weight="0"
-      />
-
-  <viewlet
-      name="xmltree"
-      for="*"
-      manager="zope.app.boston.IJavaScript"
-      class="..BostonXMLTreeJavaScriptViewlet"
-      permission="zope.View"
-      layer="zope.app.boston.boston"
-      />
-
-  <viewlet
-      name="xmltree"
-      for="*"
-      manager="zope.app.boston.ILeft"
-      class="zope.app.boston.OrderedViewlet"
-      template="xmltree.pt"
-      permission="zope.View"
-      layer="zope.app.boston.boston"
-      weight="1"
-      />
-
-  <pages
-      for="zope.app.container.interfaces.IReadContainer"
-      permission="zope.View"
-      class="zope.app.rotterdam.xmlobject.ReadContainerXmlObjectView"
-      layer="zope.app.boston.boston">
-    <page
-        name="children.xml"
-        attribute="children"
-        />
-    <page
-        name="singleBranchTree.xml"
-        attribute="singleBranchTree"
-        />
-  </pages>
-
-  <page
-      name="singleBranchTree.xml" 
-      for="zope.interface.interface.Interface"
-      permission="zope.View"
-      class="zope.app.rotterdam.xmlobject.XmlObjectView"
-      attribute="singleBranchTree"
-      layer="zope.app.boston.boston" 
-      />
-
-</configure>



More information about the Zope3-Checkins mailing list