comments plugin fails when post is in datadir root
"Sebastian Spaeth" <[email protected]> Tue, 05 Jan 2010 14:04:01 +0100
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
I just reported
https://sourceforge.net/tracker/?func=detail&aid=2926212&group_id=67445&atid=517918
and the same issue was mentioned here:
http://thread.gmane.org/gmane.comp.web.pyblosxom.devel/2166
comments.py contains a check in cb_story() that abort comment reading
when it fails:
if entry['absolute_path'] and not entry.has_key("nocomments"):
the thing is "absolute_path" is "" when a post is in the datadir root
(ie in no category) and comments won't be read. This means the number of
comments isn't displayed in the list view and there is no "post comment"
link in the story-view.
IMHO the absolute_path test is bogus and should simply be removed. I
have done so locally and things work as expected now.
-if entry['absolute_path'] and not entry.has_key("nocomments"):
+if not entry.has_key("nocomments"):
If more experienced devs agree, it would be good to make that change.
spaetz
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev