[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/ View and
Addform for Demo
Volker Bachschneider
vbachs at dzug.org
Sun Oct 10 08:20:43 EDT 2004
Log message for revision 27889:
View and Addform for Demo
Changed:
U zversioning/trunk/src/versioning/demo/browser/configure.zcml
U zversioning/trunk/src/versioning/demo/browser/info.pt
U zversioning/trunk/src/versioning/demo/configure.zcml
-=-
Modified: zversioning/trunk/src/versioning/demo/browser/configure.zcml
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 12:18:03 UTC (rev 27888)
+++ zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 12:20:43 UTC (rev 27889)
@@ -1,8 +1,33 @@
<configure
xmlns='http://namespaces.zope.org/zope'
xmlns:browser='http://namespaces.zope.org/browser'
- i18n_domain="buddydemo"
+ i18n_domain="vproposal"
xmlns:i18n="http://namespaces.zope.org/i18n"
>
+<browser:page
+ for="..interfaces.IVProposal"
+ name="index.html"
+ template="info.pt"
+ permission="zope.View"
+ menu="zmi_views"
+ title="View"
+ />
+
+<browser:addform
+ schema="..interfaces.IVProposal"
+ label="Add an Proposal"
+ content_factory="..vproposal.VProposal"
+ arguments="title usecase concept todo issues"
+ name="AddProposal.html"
+ permission="zope.ManageContent"
+ />
+
+<browser:addMenuItem
+ class="..vproposal.VProposal"
+ title="Proposal"
+ permission="zope.ManageContent"
+ view="AddProposal.html"
+ />
+
</configure>
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/browser/info.pt
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 12:18:03 UTC (rev 27888)
+++ zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 12:20:43 UTC (rev 27889)
@@ -1 +1,22 @@
-
\ No newline at end of file
+<html metal:use-macro="context/@@standard_macros/view"
+ i18n:domain="buddydemo">
+<body><div metal:fill-slot="body">
+<h1>Proposal</h1>
+<!-- * -->
+ <table>
+ <caption i18n:translate="">Versionable Proposal</caption>
+ <tr><th i18n:translate="">Use Cases</th>
+ <td tal:content="context/usecase">What Situations we will solve</td>
+ </tr>
+ <tr><th i18n:translate="">Concept</th>
+ <td tal:content="context/concept">Technical Concept</td>
+ </tr>
+ <tr><th i18n:translate="">Todo</th>
+ <td tal:content="context/todo">Steps to go</td>
+ </tr>
+ <tr><th i18n:translate="">Issues</th>
+ <td tal:content="context/issues">Open Issues</td>
+ </tr>
+ </table>
+<!-- * -->
+</div></body></html>
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/configure.zcml
===================================================================
--- zversioning/trunk/src/versioning/demo/configure.zcml 2004-10-10 12:18:03 UTC (rev 27888)
+++ zversioning/trunk/src/versioning/demo/configure.zcml 2004-10-10 12:20:43 UTC (rev 27889)
@@ -7,6 +7,8 @@
<i18n:registerTranslations directory="locales" />
+<include package=".browser" />
+
<content class=".vproposal.VProposal">
<implements interface="zope.app.annotation.IAttributeAnnotatable"/>
<require permission="zope.View"
More information about the Zope-CVS
mailing list