[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/boston/pagelets/
Move registred pagelets from package slots to pagelets
Roger Ineichen
roger at projekt01.ch
Thu Mar 17 21:10:38 EST 2005
Log message for revision 29543:
Move registred pagelets from package slots to pagelets
Configure pagelets in own configure files
Move more parts of the master template to pagelets
Changed:
A Zope3/trunk/src/zope/app/boston/pagelets/javascript.pt
A Zope3/trunk/src/zope/app/boston/pagelets/javascript.zcml
A Zope3/trunk/src/zope/app/boston/pagelets/toggle.zcml
A Zope3/trunk/src/zope/app/boston/pagelets/toolbar.zcml
A Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox.zcml
A Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox_layout.pt
A Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox.zcml
A Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox_layout.pt
-=-
Added: Zope3/trunk/src/zope/app/boston/pagelets/javascript.pt
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/javascript.pt 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/javascript.pt 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,8 @@
+<metal:block define-macro="javascript">
+ <script type="text/javascript" src="boston.js"
+ tal:attributes="src string:${context/++resource++boston.js}">
+ <!-- Using a separate end tag instead of a single empty tag is
+ necessary to support some browsers (Firefox 1.0, for example).
+ -->
+ </script>
+</metal:block>
Property changes on: Zope3/trunk/src/zope/app/boston/pagelets/javascript.pt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/javascript.zcml
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/javascript.zcml 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/javascript.zcml 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,16 @@
+<configure
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns="http://namespaces.zope.org/browser"
+ i18n_domain="zope">
+
+ <pagelet
+ name="javascript"
+ for="*"
+ slot="zope.app.boston.slots.IJavaScript"
+ permission="zope.Public"
+ template="javascript.pt"
+ layer="zope.app.boston.boston"
+ weight="1"
+ />
+
+</configure>
\ No newline at end of file
Property changes on: Zope3/trunk/src/zope/app/boston/pagelets/javascript.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/toggle.zcml
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/toggle.zcml 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/toggle.zcml 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,37 @@
+<configure
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns="http://namespaces.zope.org/browser"
+ i18n_domain="tiks">
+
+ <configure package="zope.app.skintools.javascripts.toggle.browser">
+ <pagelet
+ for="*"
+ name="toggle"
+ slot="zope.app.boston.slots.IJavaScript"
+ permission="zope.Public"
+ template="javascript.pt"
+ layer="zope.app.boston.boston"
+ weight="1"
+ />
+
+ <resource
+ name="toggle.js"
+ file="toggle.js"
+ layer="zope.app.boston.boston"
+ />
+ </configure>
+
+ <!-- toggle img -->
+ <resource
+ name="collapse.gif"
+ file="img/collapse.gif"
+ layer="zope.app.boston.boston"
+ />
+
+ <resource
+ name="expand.gif"
+ file="img/expand.gif"
+ layer="zope.app.boston.boston"
+ />
+
+</configure>
\ No newline at end of file
Property changes on: Zope3/trunk/src/zope/app/boston/pagelets/toggle.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/toolbar.zcml
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/toolbar.zcml 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/toolbar.zcml 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,27 @@
+<configure
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns="http://namespaces.zope.org/browser"
+ i18n_domain="tiks">
+
+ <configure package="zope.app.skintools.toolbar.browser">
+ <pagelet
+ for="*"
+ slot="zope.app.boston.slots.IToolBar"
+ name="toolbar"
+ permission="zope.View"
+ template="toolbar.pt"
+ layer="zope.app.boston.boston"
+ weight="1"
+ />
+
+ <pagelet
+ name="toolbar_layout"
+ for="*"
+ slot="zope.app.skintools.toolbar.IToolBarLayout"
+ permission="zope.View"
+ template="toolbar_layout.pt"
+ layer="zope.app.boston.boston"
+ />
+ </configure>
+
+</configure>
\ No newline at end of file
Property changes on: Zope3/trunk/src/zope/app/boston/pagelets/toolbar.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox.zcml
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox.zcml 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox.zcml 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,27 @@
+<configure
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns="http://namespaces.zope.org/browser"
+ i18n_domain="zope">
+
+ <configure package="zope.app.skintools.tooltipbox.browser">
+ <pagelet
+ name="tooltipbox"
+ for="zope.app.container.interfaces.IWriteContainer"
+ slot="zope.app.boston.slots.ILeft"
+ permission="zope.View"
+ template="tooltipbox.pt"
+ layer="zope.app.boston.boston"
+ weight="2"
+ />
+ </configure>
+
+ <pagelet
+ name="tooltipbox_layout"
+ for="*"
+ slot="zope.app.skintools.tooltipbox.IToolTipBoxLayout"
+ permission="zope.View"
+ template="tooltipbox_layout.pt"
+ layer="zope.app.boston.boston"
+ />
+
+</configure>
\ No newline at end of file
Property changes on: Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox_layout.pt 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/tooltipbox_layout.pt 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,25 @@
+<html>
+<body>
+
+<metal:block define-macro="tooltipbox_layout">
+ <div class="slotbox" id="tooltipbox">
+ <div class="header">
+ <img id="arrowToolTipBox" class="icon" style="cursor:hand"
+ onClick="javascript:toggle(
+ document.getElementById('arrowToolTipBox'), 'tooltipboxToggle')"
+ border="0" src="collapse.gif" width="16" height="16"
+ tal:attributes="src context/++resource++collapse.gif" />
+ <metal:block define-slot="header">
+ This text will be replace by the content of the pagelet.
+ </metal:block>
+ </div>
+ <div class="toggle body" id="tooltipboxToggle">
+ <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/boston/pagelets/tooltipbox_layout.pt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox.zcml
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox.zcml 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox.zcml 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,53 @@
+<configure
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns="http://namespaces.zope.org/browser"
+ i18n_domain="zope">
+
+ <configure package="zope.app.skintools.zmicookietreebox.browser">
+ <pagelet
+ name="zmicookietreebox"
+ for="*"
+ slot="zope.app.boston.slots.ILeft"
+ permission="zope.View"
+ template="zmicookietreebox.pt"
+ layer="zope.app.boston.boston"
+ weight="0"
+ />
+ </configure>
+
+ <pagelet
+ name="zmicookietreebox_layout"
+ for="*"
+ slot="zope.app.skintools.zmicookietreebox.IZMICookieTreeBoxLayout"
+ permission="zope.View"
+ template="zmicookietreebox_layout.pt"
+ layer="zope.app.boston.boston"
+ />
+
+ <configure package="zope.app.tree.browser">
+ <pages
+ for="*"
+ class=".cookie.CookieTreeView"
+ permission="zope.View"
+ layer="zope.app.boston.boston"
+ >
+ <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/boston/pagelets/zmicookietreebox.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox_layout.pt
===================================================================
--- Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox_layout.pt 2005-03-18 02:10:17 UTC (rev 29542)
+++ Zope3/trunk/src/zope/app/boston/pagelets/zmicookietreebox_layout.pt 2005-03-18 02:10:37 UTC (rev 29543)
@@ -0,0 +1,25 @@
+<html>
+<body>
+
+<metal:block define-macro="zmicookietreebox_layout">
+ <div class="slotbox" id="zmicookietreebox">
+ <div class="header">
+ <img id="arrowZMICookieTreeBox" class="icon" style="cursor:hand"
+ onClick="javascript:toggle(document.getElementById(
+ 'arrowZMICookieTreeBox'), 'zmicookietreeboxToggle')"
+ border="0" src="collapse.gif" width="16" height="16"
+ tal:attributes="src context/++resource++collapse.gif" />
+ <metal:block define-slot="header">
+ This text will be replace by the content of the pagelet.
+ </metal:block>
+ </div>
+ <div class="toggle treebody" id="zmicookietreeboxToggle">
+ <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/boston/pagelets/zmicookietreebox_layout.pt
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the Zope3-Checkins
mailing list