Opened 16 years ago
Last modified 15 years ago
#303 new defect
Tutorial's comment.html includes unused code
Reported by: | joel@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Documentation | Version: | 0.5.1 |
Keywords: | Cc: |
Description
In the (otherwise truly excellent) tutorial at http://genshi.edgewall.org/wiki/GenshiTutorial, there is a file, "comment.html", used to show the comment form.
It includes this snippet of code:
<p py:if="comment">
In reply to <strong>${comment.username}</strong> at ${comment.time.strftime('%x %X')}: <blockquote>${comment.content}</blockquote>
</p>
However, the calling method calls it with:
stream = template.render(link=link, comment=None, errors=errors)
That snippet is completely unused in the documentation; it can never be reached.
I assume this is a bug in these docs (and a tiny bit confusing for those of us studying these docs for wisom). I'm a genshi newbie, though, so I'd rather not change this, in case I'm wrong.