[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/ Fixed
Unicode Error
Volker Bachschneider
vbachs at dzug.org
Sun Oct 10 10:39:57 EDT 2004
Log message for revision 27911:
Fixed Unicode Error
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/interfaces.py
U zversioning/trunk/src/versioning/demo/vproposal.py
U zversioning/trunk/src/versioning/demo/vproposal.txt
-=-
Modified: zversioning/trunk/src/versioning/demo/browser/configure.zcml
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 14:26:48 UTC (rev 27910)
+++ zversioning/trunk/src/versioning/demo/browser/configure.zcml 2004-10-10 14:39:57 UTC (rev 27911)
@@ -18,7 +18,7 @@
schema="..interfaces.IVProposal"
label="Add an Proposal"
content_factory="..vproposal.VProposal"
- arguments="title usecase concept todo issues"
+ fields = "title usecase"
name="AddProposal.html"
permission="zope.ManageContent"
/>
Modified: zversioning/trunk/src/versioning/demo/browser/info.pt
===================================================================
--- zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 14:26:48 UTC (rev 27910)
+++ zversioning/trunk/src/versioning/demo/browser/info.pt 2004-10-10 14:39:57 UTC (rev 27911)
@@ -9,13 +9,13 @@
<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>
+ <td tal:content="context/concept | nothing">Technical Concept</td>
</tr>
<tr><th i18n:translate="">Todo</th>
- <td tal:content="context/todo">Steps to go</td>
+ <td tal:content="context/todo | nothing">Steps to go</td>
</tr>
<tr><th i18n:translate="">Issues</th>
- <td tal:content="context/issues">Open Issues</td>
+ <td tal:content="context/issues | nothing">Open Issues</td>
</tr>
</table>
<!-- * -->
Modified: zversioning/trunk/src/versioning/demo/interfaces.py
===================================================================
--- zversioning/trunk/src/versioning/demo/interfaces.py 2004-10-10 14:26:48 UTC (rev 27910)
+++ zversioning/trunk/src/versioning/demo/interfaces.py 2004-10-10 14:39:57 UTC (rev 27911)
@@ -11,4 +11,5 @@
usecase = Text(title=_("Use Case"))
concept = Text(title=_("Concept"))
todo = Text(title=_("Todo"))
- issues = Text(title=_("Open Issues"))
\ No newline at end of file
+ issues = Text(title=_("Open Issues"))
+
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/vproposal.py
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 14:26:48 UTC (rev 27910)
+++ zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 14:39:57 UTC (rev 27911)
@@ -8,7 +8,7 @@
zope.interface.implements(IVProposal)
- def __init__(self,title='',usecase='',concept='',todo='',issues=''):
+ def __init__(self,title=u'',usecase=u'',concept=u'',todo=u'',issues=u''):
self.title = title
self.usecase = usecase
self.concept = concept
@@ -18,7 +18,7 @@
def setTitle(self, title):
"""Set bug title."""
dc = IZopeDublinCore(self)
- dc.title = title
+ dc.title = unicode(title)
def getTitle(self):
"""Get bug title."""
Modified: zversioning/trunk/src/versioning/demo/vproposal.txt
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.txt 2004-10-10 14:26:48 UTC (rev 27910)
+++ zversioning/trunk/src/versioning/demo/vproposal.txt 2004-10-10 14:39:57 UTC (rev 27911)
@@ -10,22 +10,9 @@
You create it calling the 'VProposal' class:
- >>> from versioning.demo import vproposal
- >>> vprop = vproposal.VProposal('Proptitle','Usecases are ...',
- ... 'Technical Concept','Todo: Steps are ...','Open Issues ...')
- ...
Access the content and title via attributes:
- >>> vprop.title, vprop.usecase, vprop.concept
- ('Proptitle', 'Usecases are ...', 'Technical Concept')
- >>> vprop.todo, vprop.issues
- ('Todo: Steps are ...', 'Open Issues ...')
All data in the 'VProposal' class defaults to a empty string:
- >>> vprop = vproposal.VProposal()
- >>> vprop.title, vprop.usecase, vprop.concept
- ('', '', '')
- >>> vprop.todo, vprop.issues
- ('', '')
More information about the Zope-CVS
mailing list