[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/skintools/ Added skintools packages

Roger Ineichen roger at projekt01.ch
Mon Mar 7 18:53:29 EST 2005


Log message for revision 29412:
  Added skintools packages

Changed:
  A   Zope3/trunk/src/zope/app/skintools/README.txt
  A   Zope3/trunk/src/zope/app/skintools/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/addbox/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/addbox/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox.pt
  A   Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox_layout.pt
  A   Zope3/trunk/src/zope/app/skintools/addbox/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/addbox/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/helpaction/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/helpaction/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/helpaction/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction.pt
  A   Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction_layout.pt
  A   Zope3/trunk/src/zope/app/skintools/helpaction/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/javascripts/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/javascript.pt
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/toggle.js
  A   Zope3/trunk/src/zope/app/skintools/javascripts/toggle/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/toolbar/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/toolbar/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/toolbar/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar.pt
  A   Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar_layout.pt
  A   Zope3/trunk/src/zope/app/skintools/toolbar/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox.pt
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox_layout.pt
  A   Zope3/trunk/src/zope/app/skintools/tooltipbox/configure.zcml
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/__init__.py
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/configure.zcml.sample
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox.pt
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox_layout.pt
  A   Zope3/trunk/src/zope/app/skintools/zmicookietreebox/configure.zcml

-=-
Added: Zope3/trunk/src/zope/app/skintools/README.txt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/README.txt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/README.txt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,40 @@
+======
+README
+======
+
+The skintools package contains several reusable components which uses
+the pagelet concept I've implemented several months ago. I hope
+I can now show how easy pagelets can be used in the Boston skin.
+
+Register the pagelets you like to a slot used in a skin. And to the
+layer used in the skin.
+
+This package only registres the interfaces used in the pagelets. 
+See pagelet directive sample in configure.zcml.sample file in browser 
+packages. 
+
+The pagelets in the sub packages are strictly separated in data and layout
+pagelets. This makes it resuable in other skins. You only have to register
+our own layout pagelet.
+
+Background
+----------
+Remember, pagelts are just another concept how ZPT macro's can be used.
+If you understand how macros work, it's very easy to see, that pagelets
+are just a generic lookup for ZPT's macro code. Since pagelets are  
+registred on context, layers, views and slots (multiadapter), you can 
+imagine how individual we can use this pagelets concept.
+
+Example
+-------
+
+See zope.app.boston.slots.configure.zcml for a sample, which uses this 
+skintool/pagelet pattern.
+
+Tests
+-----
+
+Oh, well, what should we test? This are only views. I added some tests
+in the zope.app.boston.browser.ftests.py. Perhaps we have to add some
+tests here. This means we have to add a test skin, register this pagelets
+and test if they renderd the HTML correct.


Property changes on: Zope3/trunk/src/zope/app/skintools/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools default pagelet slots
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools commontask
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IAddBoxLayout(IPageletSlot):
+    """This slot contains the layout of a pagelet."""


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools addbox views
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,57 @@
+<html>
+<body>
+
+<div metal:define-macro="addbox"
+		tal:define="global addingInfo context/@@+/addingInfo"
+		tal:repeat="pagelet pagelets:zope.app.skintools.addbox.IAddBoxLayout"
+		tal:omit-tag="">
+
+	<tal:block metal:use-macro="pagelet">
+
+		<metal:block fill-slot="header">
+			<div class="title" i18n:translate="">Quick add</div>
+		</metal:block>
+
+		<metal:block fill-slot="body" tal:condition="addingInfo">
+			<span tal:repeat="info addingInfo" tal:omit-tag="">
+				<div tal:define="namesRequired context/@@+/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'"
+						 class="even">
+					<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>
+		</metal:block>
+	</tal:block>
+
+</div>
+
+</body>
+</html>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox_layout.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox_layout.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,30 @@
+<html>
+<body>
+
+<metal:block define-macro="addbox_layout">
+	<div class="slotbox" id="addbox">
+		<div class="header"> 
+	
+			<metal:block define-slot="header">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+
+			<span>
+			<img id="arrowAddBox" class="icon" style="cursor:hand" 
+					 onClick="javascript:toggle(document.getElementById('arrowAddBox'), 'adddboxToggle')"
+					 border="0" src="collapse.gif" width="16" height="16"
+					 tal:attributes="src context/++resource++collapse.gif">
+			</span>
+		</div>
+		<div class="toggle body" id="adddboxToggle">
+	
+			<metal:block define-slot="body">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+	
+		</div>
+	</div>
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/browser/addbox_layout.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,31 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       --> 
+
+  <!-- pagelet defining the box data -->
+  <pagelet
+      name="addbox"
+      for="zope.app.container.interfaces.IWriteContainer"
+      slot="the slot used in your skin"
+      permission="zope.ManageContent"
+      template="addbox.pt"
+      layer="the layer of your skin"
+      weight="1"
+      />
+
+  <!-- pagelet defining the layout -->
+  <pagelet
+      name="addbox_layout"
+      for="*"
+      slot="zope.app.skintools.addbox.IAddBoxLayout"
+      permission="zope.ManageContent"
+      template="addbox_layout.pt"
+      />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/addbox/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/addbox/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/addbox/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,6 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope">
+
+  <interface interface="zope.app.skintools.addbox.IAddBoxLayout" />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/addbox/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,32 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    xmlns:help="http://namespaces.zope.org/help"
+    xmlns:zcml="http://namespaces.zope.org/zcml"
+    i18n_domain="zope">
+
+  <!-- register skintools sub packages. Perhaps we have to 
+       include each packages directly in the package-includes 
+       as a single package.
+       -->
+       
+  <!-- slot boxes -->
+  <include package="zope.app.skintools.addbox" />
+  <include package="zope.app.skintools.tooltipbox" />
+  <include package="zope.app.skintools.zmicookietreebox" />
+
+  <!-- menu actions -->
+  <include package="zope.app.skintools.helpaction" />
+  <include package="zope.app.skintools.toolbar" />
+
+  <configure zcml:condition="have onlinehelp">
+    <help:register
+        parent="styleguide/skin"
+        id="skintools"
+        title="Skintools"
+        doc_path="README.txt"
+        class="zope.app.onlinehelp.onlinehelptopic.RESTOnlineHelpTopic"
+        />
+  </configure>
+
+</configure>


Property changes on: Zope3/trunk/src/zope/app/skintools/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools helpaction
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IHelpActionLayout(IPageletSlot):
+    """This slot contains the layout of a pagelet."""


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools helpaction views
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,31 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       --> 
+
+  <!-- pagelet defining the box data -->
+  <pagelet
+      name="helpaction"
+      for="*"
+      slot="the slot used in your skin"
+      permission="zope.ManageContent"
+      template="helpaction.pt"
+      layer="the layer of your skin"
+      weight="2"
+      />
+
+  <!-- pagelet defining the layout -->
+  <pagelet
+      name="helpaction_layout"
+      for="*"
+      slot="zope.app.skintools.helpaction.IHelpActionLayout"
+      permission="zope.ManageContent"
+      template="helpaction_layout.pt"
+      />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,45 @@
+<html>
+<body>
+
+<div metal:define-macro="helpaction"
+		tal:repeat="pagelet pagelets:zope.app.skintools.helpaction.IHelpActionLayout"
+		tal:omit-tag="">
+
+	<tal:block metal:use-macro="pagelet">
+
+		<metal:block fill-slot="helpaction">
+			<div tal:define="help_actions context/@@view_get_menu/help_actions|nothing">
+
+        <span tal:condition="help_actions"
+              tal:repeat="help_info help_actions"
+              tal:omit-tag="">
+          <a href="#"
+               tal:define="url string:'${view/__name__}/${help_info/action}';
+                           name string:'OnlineHelp';
+                           settings string:'height=400
+                                           ,width=700
+                                           ,resizable=1
+                                           ,scrollbars=yes
+                                           ,location=no
+                                           ,status=no
+                                           ,toolbar=no
+                                           ,menubar=no'"
+               tal:attributes="href python:'javascript:popup('
+                                           + url + ','
+                                           + name + ','
+                                           + settings +')'"
+               tal:content="help_info/title"
+               i18n:translate="">
+              Action name
+          </a>
+        </span>
+        &nbsp;
+      </div>
+		</metal:block>
+	</tal:block>
+
+</div>
+
+</body>
+</html>
+


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction_layout.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction_layout.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,13 @@
+<html>
+<body>
+
+<metal:block define-macro="helpaction_layout">
+	<div class="helpaction" id="actions">
+		<metal:block define-slot="helpaction">
+			Help action content
+		</metal:block>
+	</div>
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/browser/helpaction_layout.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/helpaction/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/helpaction/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/helpaction/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,6 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope">
+
+  <interface interface="zope.app.skintools.helpaction.IHelpActionLayout" />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/helpaction/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools javascripts
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools javascript toggle
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IJSPageletSlot(IPageletSlot):
+    """This slot contains the javascript head directive."""


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# Copyright (c) 2003, 2004, 2005 Projekt01 GmbH 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.
+#
+##############################################################################
+
+"""Tiks for Zope 3: Package tiks.skintools.javascripts.toggle.browser.
+
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,40 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="tiks">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       -->
+
+  <!-- pagelet defining the box data -->
+    <pagelet
+        for="*"
+        slot="the slot used in your skin" 
+        name="toggle"
+        permission="zope.Public"
+        template="javascript.pt"
+        layer="the layer of your skin"
+        />
+
+  <!-- register this resource on your skin layer -->
+    <resource 
+        name="toggle.js"
+        file="toggle.js"
+        layer="the layer of your skin"
+        />
+   
+    <resource 
+        name="collapse.gif"
+        file="img/collapse.gif"
+        layer="the layer of your skin"
+        />
+  
+    <resource 
+        name="expand.gif"
+        file="img/expand.gif"
+        layer="the layer of your skin"
+        />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/javascript.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/javascript.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/javascript.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,10 @@
+<metal:block define-macro="toggle">
+<script type="text/javascript"
+        tal:attributes="language string:JavaScript"
+        tal:content="structure string:
+  var expandGif = '${context/++resource++expand.gif}';
+  var collapseGif = '${context/++resource++collapse.gif}';">
+</script>
+<script type="text/javascript" src="toggle.js"
+        tal:attributes="src string:${context/++resource++toggle.js}" ></script>
+</metal:block>


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/javascript.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/toggle.js
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/toggle.js	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/browser/toggle.js	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,23 @@
+//----------------------------------------------------------------------------
+// toggle boxes
+//
+// toggle expand/collapse named blocks
+// register own toggle icons in your layer if needed
+//----------------------------------------------------------------------------
+
+//----------------------------------------------------------------------------
+// public API
+//----------------------------------------------------------------------------                      
+function toggle(img, node) {
+  var target = document.getElementById(node);
+  if (target.style.display == "none") {
+    target.style.display = "block";
+    img.src = collapseGif;
+  } else {
+    target.style.display = "none";
+    img.src = expandGif;
+  }
+}
+
+// TODO: improve it
+// use preferrences and xmlhttp for store toggle stat persistent.

Added: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/javascripts/toggle/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/javascripts/toggle/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,8 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="tiks">
+
+  <interface interface="tiks.skintools.javascripts.toggle.IJSPageletSlot" />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/javascripts/toggle/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools toolbar
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IToolBarLayout(IPageletSlot):
+    """This slot contains the layout of a pagelet."""


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools toolbar views
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,31 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       --> 
+
+  <!-- pagelet defining the box data -->
+  <pagelet
+      name="toolbar"
+      for="*"
+      slot="the slot used in your skin"
+      permission="zope.ManageContent"
+      template="toolbar.pt"
+      layer="the layer of your skin"
+      weight="2"
+      />
+
+  <!-- pagelet defining the layout -->
+  <pagelet
+      name="toolbar_layout"
+      for="*"
+      slot="zope.app.skintools.toolbar.IToolBarLayout"
+      permission="zope.ManageContent"
+      template="toolbar_layout.pt"
+      />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,30 @@
+<html>
+<body>
+
+<metal:block define-macro="toolbar"
+		tal:repeat="pagelet pagelets:zope.app.skintools.toolbar.IToolBarLayout">
+
+	<tal:block metal:use-macro="pagelet">
+
+		<metal:block fill-slot="toolbar">
+			<div tal:define="actions context/@@view_get_menu/zmi_actions">
+        <span tal:condition="actions"
+              tal:omit-tag="">
+          <a href="#"
+               tal:repeat="info actions"
+               tal:attributes="href info/action"
+               tal:content="info/title"
+               i18n:translate="">
+              Action name
+          </a>
+        </span>
+        &nbsp;
+      </div>
+		</metal:block>
+	</tal:block>
+
+</metal:block>
+
+</body>
+</html>
+


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar_layout.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar_layout.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,13 @@
+<html>
+<body>
+
+<metal:block define-macro="toolbar_layout">
+	<div class="viewaction" id="actions">
+		<metal:block define-slot="toolbar">
+			zmi actions
+		</metal:block>
+	</div>
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/browser/toolbar_layout.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/toolbar/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/toolbar/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/toolbar/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,6 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope">
+
+  <interface interface="zope.app.skintools.toolbar.IToolBarLayout" />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/toolbar/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools tooltipbox
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IToolTipBoxLayout(IPageletSlot):
+    """This slot contains the layout of a pagelet."""


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools tooltipbox views
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,31 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       --> 
+
+  <!-- pagelet defining the box data -->
+  <pagelet
+      name="tooltipbox"
+      for="zope.app.container.interfaces.IWriteContainer"
+      slot="the slot used in your skin"
+      permission="zope.ManageContent"
+      template="tooltipbox.pt"
+      layer="the layer of your skin"
+      weight="2"
+      />
+
+  <!-- pagelet defining the layout -->
+  <pagelet
+      name="tooltipbox_layout"
+      for="*"
+      slot="zope.app.skintools.tooltipbox.IToolTipBoxLayout"
+      permission="zope.ManageContent"
+      template="tooltipbox_layout.pt"
+      />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,27 @@
+<html>
+<body>
+
+<metal:block define-macro="tooltipbox"
+		tal:condition="pagetip|nothing"
+		tal:repeat="pagelet pagelets:zope.app.skintools.tooltipbox.IToolTipBoxLayout">
+
+	<tal:block metal:use-macro="pagelet">
+
+		<metal:block fill-slot="header">
+			<div class="title" i18n:translate="">Tip</div>
+		</metal:block>
+
+		<metal:block fill-slot="body">
+			<div class="tip">
+				<metal:block define-slot="pagetip"
+          	         tal:replace="structure pagetip">
+      		A short tip goes here
+      	</metal:block>
+			</div>
+		</metal:block>
+	</tal:block>
+
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox_layout.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox_layout.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+<html>
+<body>
+
+<metal:block define-macro="tooltipbox_layout">
+	<div class="slotbox" id="tooltipbox">
+		<div class="header"> 
+	
+			<metal:block define-slot="header">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+	
+		</div>
+		<div class="body">
+	
+			<metal:block define-slot="body">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+	
+		</div>
+	</div>
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/browser/tooltipbox_layout.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/tooltipbox/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/tooltipbox/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/tooltipbox/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,6 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope">
+
+  <interface interface="zope.app.skintools.tooltipbox.IToolTipBoxLayout" />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/tooltipbox/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools zmicookietreebox
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.pagelet.interfaces import IPageletSlot
+
+
+class IZMICookieTreeBoxLayout(IPageletSlot):
+    """This slot contains the layout of a pagelet."""


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/__init__.py	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/__init__.py	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,17 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Skintools zmicookietreebox views
+
+$Id$
+"""


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/__init__.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/configure.zcml.sample
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/configure.zcml.sample	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/configure.zcml.sample	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,58 @@
+<configure
+    xmlns:zope="http://namespaces.zope.org/zope"
+    xmlns="http://namespaces.zope.org/browser"
+    i18n_domain="zope">
+
+  <!-- This is only a sample configure.zcml file
+       See README.txt in zope.app.skintools for more 
+       information about the skintools concept.
+       --> 
+
+  <!-- pagelet defining the box data -->
+  <pagelet
+      name="zmicookietreebox"
+      for="*"
+      slot="the slot used in your skin"
+      permission="zope.View"
+      template="zmicookietreebox.pt"
+      layer="the layer of your skin"
+      weight="0"
+      />
+
+  <!-- pagelet defining the layout -->
+  <pagelet
+      name="zmicookietreebox_layout"
+      for="*"
+      slot="zope.app.skintools.zmicookietreebox.IZMICookieTreeBoxLayout"
+      permission="zope.ManageContent"
+      template="zmicookietreebox_layout.pt"
+      />
+
+  <!-- register this view if you don't inherit your skin from zope.app.tree -->
+  <configure package="zope.app.tree.browser">
+    <pages
+        for="*"
+        class=".cookie.CookieTreeView"
+        permission="zope.View"
+        layer="the layer of your skin"
+        >
+      <page
+          name="cookie_tree"
+          attribute="cookieTree"
+          />
+      <page
+          name="folder_cookie_tree"
+          attribute="folderTree"
+          />
+      <page
+          name="site_cookie_tree"
+          attribute="siteTree"
+          />
+      <page
+          name="root_cookie_tree"
+          attribute="rootTree"
+          />
+    </pages>
+  </configure>
+
+</configure>


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/configure.zcml.sample
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,99 @@
+<html>
+<body>
+
+<div metal:define-macro="zmicookietreebox"
+		tal:repeat="pagelet pagelets:zope.app.skintools.zmicookietreebox.IZMICookieTreeBoxLayout"
+		tal:omit-tag="">
+
+	<tal:block metal:use-macro="pagelet">
+
+		<metal:block fill-slot="header">
+			<div class="title" i18n:translate="">
+				Navigation 
+				<small>(cookie based)</small>
+			</div>
+		</metal:block>
+
+		<metal:block fill-slot="body">
+<table cellspacing="0" cellpadding="0"
+       tal:define="root           context/@@root_cookie_tree;
+                   result         root/getFlatDicts;
+                   nodeDictList   python:result[0];
+                   maxDepth       python:result[1]">
+
+<tr>
+  <td width="16">
+    <img src="" tal:define="icon root/context/@@zmi_icon | nothing"
+         tal:replace="structure icon" />
+  </td>
+
+  <td class="list-item"
+      tal:attributes="colspan python:maxDepth+2">
+    <a href=""
+       tal:attributes="href 
+           string:${root/context/@@absolute_url}/@@SelectedManagementView.html"
+       tal:content="root/getId() | string:[top]"></a>
+  </td>
+</tr>
+
+<tr tal:repeat="nodeInfo nodeDictList">
+<tal:block tal:define="node nodeInfo/node">
+
+  <td style="width:16px" tal:repeat="state nodeInfo/row-state">
+    <img tal:attributes="src context/++resource++tree_images/vline.png"
+         tal:condition="state" alt="|" border="0" />
+  </td>
+
+  <td style="width:16px">
+    <a href=""
+       tal:attributes="href string:?tree-state=${nodeInfo/tree-state}"
+       tal:condition="node/hasChildren">
+      <tal:block condition="not:nodeInfo/last-level-node">
+        <img tal:attributes="src context/++resource++tree_images/plus_vline.png"
+             tal:condition="not:node/expanded" alt="+" border="0" />
+        <img tal:attributes="src context/++resource++tree_images/minus_vline.png"
+             tal:condition="node/expanded" alt="-" border="0" />
+      </tal:block>
+      <tal:block condition="nodeInfo/last-level-node">
+        <img tal:attributes="src context/++resource++tree_images/plus.png"
+             tal:condition="not:node/expanded" alt="+" border="0" />
+        <img tal:attributes="src context/++resource++tree_images/minus.png"
+             tal:condition="node/expanded" alt="-" border="0" />
+      </tal:block>
+    </a>
+    <tal:block condition="not:node/hasChildren">
+      <img tal:attributes="src context/++resource++tree_images/tline.png"
+           tal:condition="not:nodeInfo/last-level-node" alt="" border="0" />
+      <img tal:attributes="src context/++resource++tree_images/lline.png"
+           tal:condition="nodeInfo/last-level-node" alt="" border="0" />
+    </tal:block>
+  </td>
+
+  <td style="width:16px"
+      tal:define="object nocall:node/context;
+                  icon   object/@@zmi_icon | nothing">
+    <img src="" tal:replace="structure icon" />
+  </td>
+
+  <td class="list-item"
+      tal:attributes="colspan python:maxDepth-len(nodeInfo['row-state'])+1">
+    &nbsp;<a href=""
+       tal:attributes="href 
+           string:${node/context/@@absolute_url}/@@SelectedManagementView.html"
+       tal:content="node/context/zope:name">
+      node/id
+    </a>
+  </td>
+
+</tal:block>
+</tr>
+
+</table>
+
+		</metal:block>
+
+	</tal:block>
+</div>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox_layout.pt	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox_layout.pt	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,24 @@
+<html>
+<body>
+
+<metal:block define-macro="zmicookietreebox_layout">
+	<div class="slotbox" id="zmicookietreebox">
+		<div class="header"> 
+	
+			<metal:block define-slot="header">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+	
+		</div>
+		<div class="toggle treebody">
+	
+			<metal:block define-slot="body">
+				This text will be replace by the content of the pagelet.
+			</metal:block>
+	
+		</div>
+	</div>
+</metal:block>
+
+</body>
+</html>


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/browser/zmicookietreebox_layout.pt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/skintools/zmicookietreebox/configure.zcml	2005-03-07 23:52:51 UTC (rev 29411)
+++ Zope3/trunk/src/zope/app/skintools/zmicookietreebox/configure.zcml	2005-03-07 23:53:29 UTC (rev 29412)
@@ -0,0 +1,8 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope">
+
+  <interface
+      interface="zope.app.skintools.zmicookietreebox.IZMICookieTreeBoxLayout"
+      />
+
+</configure>
\ No newline at end of file


Property changes on: Zope3/trunk/src/zope/app/skintools/zmicookietreebox/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope3-Checkins mailing list