[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/ first
running contenttype (without versioning)
Volker Bachschneider
vbachs at dzug.org
Sun Oct 10 08:45:01 EDT 2004
Log message for revision 27893:
first running contenttype (without versioning)
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/vproposal.py
-=-
Modified: zversioning/trunk/src/versioning/demo/browser/configure.zcml
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 12:41:07 UTC (rev 27892)
+++ zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 12:45:00 UTC (rev 27893)
@@ -23,6 +23,15 @@
permission="zope.ManageContent"
/>
+<browser:editform
+ schema="..interfaces.IVProposal"
+ label="Edit the Proposal"
+ name="EditProposal.html"
+ menu="zmi_views"
+ title="Edit"
+ permission="zope.ManageContent"
+ />
+
<browser:addMenuItem
class="..vproposal.VProposal"
title="Proposal"
Modified: zversioning/trunk/src/versioning/demo/browser/info.pt
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 12:41:07 UTC (rev 27892)
+++ zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 12:45:00 UTC (rev 27893)
@@ -4,7 +4,7 @@
<h1>Proposal</h1>
<!-- * -->
<table>
- <caption i18n:translate="">Versionable Proposal</caption>
+ <caption tal:content="context/title">Versionable Proposal</caption>
<tr><th i18n:translate="">Use Cases</th>
<td tal:content="context/usecase">What Situations we will solve</td>
</tr>
Modified: zversioning/trunk/src/versioning/demo/vproposal.py
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 12:41:07 UTC (rev 27892)
+++ zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 12:45:00 UTC (rev 27893)
@@ -14,3 +14,15 @@
self.concept = concept
self.todo = todo
self.issues = issues
+
+ def setTitle(self, title):
+ """Set bug title."""
+ dc = IZopeDublinCore(self)
+ dc.title = title
+
+ def getTitle(self):
+ """Get bug title."""
+ dc = IZopeDublinCore(self)
+ return dc.title
+
+ title=property(getTitle,setTitle)
More information about the Zope-CVS
mailing list