content,
<div xmlns:kid="http://purl.org/kid/ns#" kid:omit="">
<?python
import time
ISSUE = redfoot.namespace("http://redfoot.net/3.0/issue#")
SERVER = redfoot.namespace("http://redfoot.net/3.0/server#")
DC_creator = URIRef("http://purl.org/dc/elements/1.1/creator")
DC_created = URIRef("http://purl.org/dc/terms/created")
issues = set()
for issue in redfoot.subjects(RDF.type, ISSUE.Resolved):
label = redfoot.label(issue) or issue
comment = redfoot.comment(issue)
c = redfoot.value(issue, DC_created)
try:
created = time.strftime("%A %d %B, %Y", time.gmtime(float(c)))
except Exception, e:
redfoot.log.warning("Couldn't format timestamp: %s" % e)
created = None
issues.add((c, created, issue, label, comment))
issues = list(issues)
issues.sort()
issues.reverse()
?>
<p><a href="/issues/">Issues</a></p>
<ul class="issues">
<li kid:for="c, created, issue, label, comment in issues">
<h3><a href="${issue.concrete()}">${label}</a></h3>
<div class="meta">
<a href="${issue.concrete()}">issue</a>
<span kid:if="created">created on ${created}</span>.
</div>
<pre>${comment}</pre>
</li>
</ul>
</div>
Comments regarding http://redfoot.net/3.0/aspects/issues/resolved_issues
Login to submit a comment.