Comments error
John Sullivan <john-/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
I'm having a lot of fun setting up my home page with pyblosxom. Thanks
to everyone who has contributed to the project.
I'm working on getting comments set up. I'm having a couple of
problems, not sure if they are related.
First, the comments form is only displaying below some stories and not
others. All of the comment*.html files are located in my datadir.
Second, there is the error below from the server logs. I've searched
the mailing list a bit, and saw some reports of similar errors, but
the causes don't seem to be the same here. For one, the comment files
are being written in the datadir/comments/entrydir. The comments were
also emailed successfully. So, I don't _think_ this is a permissions
thing. But, when I try to load the page for the story where the
comments are, I get the head and foot, but just blank space where the
story and comments should be.
Finally, a question. I see mention in the docs of adding a
"nocomments" property to stories where comments aren't wanted. What is
the syntax for adding a property, and does it go in the entry file
itself? Is this what is causing the error below also---like, is there
something I need to be adding to the entry file beyond just the text
for the entry if I want comments to be displayed?
Suggestions? Thanks.
-John
Traceback (most recent call last):
File "index.cgi", line 54, in ?
p.run()
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/pyblosxom.py", line 89, in run
blosxom_handler(self._request)
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/pyblosxom.py", line 459, in blosxom_handler
renderer.render()
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/renderers/blosxom.py", line 217, in render
self._processContent()
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/renderers/blosxom.py", line 182, in _processContent
output, current_date = self._processEntry(entry, current_date)
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/renderers/blosxom.py", line 143, in _processEntry
args = self._run_callback("story_end", { "entry": entry, "template": template })
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/renderers/blosxom.py", line 306, in _run_callback
defaultfunc=lambda x:x)
File "/arpa/hm/j/johnsu01/usr/src/pyblosxom-1.0.0/Pyblosxom/tools.py", line 415, in run_callback
output = mem(input)
File "/arpa/hm/j/johnsu01/html/plugins/comments.py", line 447, in cb_story_end
entry['comments'] = readComments(entry, config)
File "/arpa/hm/j/johnsu01/html/plugins/comments.py", line 94, in readComments
tools.log("Couldn't read comments for entry: ",entry)
AttributeError: 'module' object has no attribute 'log'
signature.asc
(application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBRN4CCRwR0q6GALYRAiMiAJ91L6ylb3RrOKf1gIDGLD90WxAopgCfasIL YFpY4tl2MpfuclU8/p1LrLU= =bcOO -----END PGP SIGNATURE-----