[Zope3-checkins] CVS: zopeproducts/bugtracker/browser -
bug_overview.pt:1.4 comment.py:1.2 tracker.py:1.11
tracker_overview.pt:1.7
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 12 19:51:33 EDT 2003
Update of /cvs-repository/zopeproducts/bugtracker/browser
In directory cvs.zope.org:/tmp/cvs-serv18230/src/zopeproducts/bugtracker/browser
Modified Files:
bug_overview.pt comment.py tracker.py tracker_overview.pt
Log Message:
Use sane user data (i.e. the title)
Add domain to templates.
=== zopeproducts/bugtracker/browser/bug_overview.pt 1.3 => 1.4 ===
--- zopeproducts/bugtracker/browser/bug_overview.pt:1.3 Tue Aug 12 14:55:11 2003
+++ zopeproducts/bugtracker/browser/bug_overview.pt Tue Aug 12 18:50:57 2003
@@ -87,7 +87,7 @@
<div tal:repeat="comment view/comments" i18n:domain="">
<h5 style="margin: 0em 0.6em" i18n:translate="">
Entry #<d tal:replace="repeat/comment/number" i18n:name="bug_id"/> by
- <d tal:replace="comment/creator" i18n:name="creator"/> on
+ <d tal:replace="comment/creator/getTitle" i18n:name="creator"/> on
<d tal:replace="comment/modified" i18n:name="modified_datetime"/>
</h5>
<div class="comment"
=== zopeproducts/bugtracker/browser/comment.py 1.1 => 1.2 ===
--- zopeproducts/bugtracker/browser/comment.py:1.1 Thu Jul 24 14:08:10 2003
+++ zopeproducts/bugtracker/browser/comment.py Tue Aug 12 18:50:57 2003
@@ -16,8 +16,9 @@
$Id$
"""
import re
-from zope.component import getAdapter
+from zope.component import getAdapter, getService
from zope.app.interfaces.dublincore import IZopeDublinCore
+from zope.app.services.servicenames import Authentication
from StructuredText import HTML
@@ -29,7 +30,8 @@
def creator(self):
dc = getAdapter(self.context, IZopeDublinCore)
- return dc.creators[0]
+ auth = getService(self.context, Authentication)
+ return auth.getPrincipal(dc.creators[0])
def modified(self):
dc = getAdapter(self.context, IZopeDublinCore)
=== zopeproducts/bugtracker/browser/tracker.py 1.10 => 1.11 ===
--- zopeproducts/bugtracker/browser/tracker.py:1.10 Tue Aug 12 14:55:11 2003
+++ zopeproducts/bugtracker/browser/tracker.py Tue Aug 12 18:50:57 2003
@@ -19,8 +19,9 @@
from zope.app.browser.container.adding import Adding
from zope.app.interfaces.dublincore import IZopeDublinCore
from zope.app.interfaces.index.text import ISearchableText
+from zope.app.services.servicenames import Authentication
from zope.app.traversing import getName
-from zope.component import getAdapter
+from zope.component import getAdapter, getService
from zope.schema.vocabulary import getVocabularyRegistry
from zopeproducts.bugtracker.browser.bug import BugBaseView
@@ -167,6 +168,10 @@
return self.context.description
else:
return self.context.description[:200] + u'...'
+
+ def submitter(self):
+ auth = getService(self.context, Authentication)
+ return auth.getPrincipal(self.context.submitter)
class Overview(object):
=== zopeproducts/bugtracker/browser/tracker_overview.pt 1.6 => 1.7 ===
--- zopeproducts/bugtracker/browser/tracker_overview.pt:1.6 Tue Aug 12 14:55:11 2003
+++ zopeproducts/bugtracker/browser/tracker_overview.pt Tue Aug 12 18:50:57 2003
@@ -121,7 +121,7 @@
</div>
<div class="summary_metadata" i18n:translate="">
- Posted by <b tal:content="bug/context/submitter"
+ Posted by <b tal:content="bug/submitter/getTitle"
i18n:name="submitter">Submitter</b>
on <b tal:replace="bug/created"
i18n:name="created_date">2003/01/01</b>
More information about the Zope3-Checkins
mailing list