[z3-checkins] r9711 - z3/Five/trunk
faassen at codespeak.net
faassen at codespeak.net
Tue Mar 8 16:39:45 MET 2005
Author: faassen
Date: Tue Mar 8 16:39:44 2005
New Revision: 9711
Added:
z3/Five/trunk/five_template.pt
Modified:
z3/Five/trunk/add.pt
z3/Five/trunk/adding.pt
z3/Five/trunk/configure.zcml
z3/Five/trunk/edit.pt
Log:
Make the various Five view rely on five_template. This can be overridden
by another product (in a skin for instance) to show five-generated
pages in the desired layout.
Modified: z3/Five/trunk/add.pt
==============================================================================
--- z3/Five/trunk/add.pt (original)
+++ z3/Five/trunk/add.pt Tue Mar 8 16:39:44 2005
@@ -1,4 +1,4 @@
-<html metal:use-macro="here/main_template/macros/master">
+<html metal:use-macro="here/five_template/macros/master">
<body>
<div metal:fill-slot="main">
Modified: z3/Five/trunk/adding.pt
==============================================================================
--- z3/Five/trunk/adding.pt (original)
+++ z3/Five/trunk/adding.pt Tue Mar 8 16:39:44 2005
@@ -1,4 +1,4 @@
-<html metal:use-macro="here/main_template/macros/master">
+<html metal:use-macro="here/five_template/macros/master">
<body>
<div metal:fill-slot="main">
<p>+ screen not yet supported by Five</p>
Modified: z3/Five/trunk/configure.zcml
==============================================================================
--- z3/Five/trunk/configure.zcml (original)
+++ z3/Five/trunk/configure.zcml Tue Mar 8 16:39:44 2005
@@ -37,6 +37,13 @@
allowed_interface="zope.app.traversing.browser.interfaces.IAbsoluteURL"
/>
+ <browser:page
+ for="*"
+ template="five_template.pt"
+ name="five_template"
+ permission="zope.Public"
+ />
+
<view
for="*"
factory=".browser.AbsoluteURL"
Modified: z3/Five/trunk/edit.pt
==============================================================================
--- z3/Five/trunk/edit.pt (original)
+++ z3/Five/trunk/edit.pt Tue Mar 8 16:39:44 2005
@@ -1,5 +1,5 @@
<tal:tag condition="view/update"/>
-<html metal:use-macro="here/main_template/macros/master">
+<html metal:use-macro="here/five_template/macros/master">
<body metal:fill-slot="main">
<div>
Added: z3/Five/trunk/five_template.pt
==============================================================================
--- (empty file)
+++ z3/Five/trunk/five_template.pt Tue Mar 8 16:39:44 2005
@@ -0,0 +1,10 @@
+<html metal:define-macro="master">
+<head>
+<metal:block define-slot="css_slot">
+</metal:block>
+</head>
+<body>
+<metal:block define-slot="main">
+</metal:block>
+</body>
+</html>
More information about the z3-checkins
mailing list