Re: Re: Comments error
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Just to restate the proble, the comments plugin has a well-known bug
involved with the logging and in this case, it's a red herring.
If you look at what it's trying to log, though, that's the error that
John's having issues with. In this case, the error being logged is:
Couldn't read comments for entry.
/will
On Thu, 16 Sep 2004, Tung Wai Yip wrote:
> On Wed, 15 Sep 2004 23:20:26 -0400, John Sullivan <john-/[email protected]>
> wrote:
>
>> will guaraldi <[email protected]> writes:
>>
>>> On Mon, 13 Sep 2004, John Sullivan wrote:
>>>
>>>> will guaraldi <[email protected]> writes:
>>>>> What version of PyBlosxom are you using? What entryparser and
>>>>> plugins do you have running?
>>>>>
>>>>
>>>> I have not done anything to specify an entryparser. Maybe I should?
>>>> But I don't have any problems with the metadata properties being
>>>> filled in as far as the permalink, google this, etc. links under
>>>> each story go---and I didn't have to manually add properties for
>>>> those to work.
>>>>
>>>> Plugins: pyarchives, comments, booklist, plugininfo, pystaticfile,
>>>> pycategories, pycalendar.
>>>>
>>>> pyblosxom 1.0.0.
>>>
>>> I just wanted to know if you had your own entryparser because maybe it
>>> wasn't generating things correctly.
>>>
>>> I really have no idea what the issue might be. I think your best bet
>>> is to find out if it's dumping errors to the apache logs.
>>>
>>
>> It is dumping errors to the apache logs. Here are the errors :
>>
>> 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'
>>
>>> You should also grab my debug plugin. It allows you to switch the
>>> renderer to the debug renderer (which is _really_ useful) by tossing a
>>> debug=yes at the end of the querystring. That'll show you all the
>>> values for everything.
>>>
>>
>> I did this, and nothing jumped out at me. It had the correct values
>> for the entry, and the text, and all of the filenames, from what I
>> could tell. I compared the debug info for a broken page to the info
>> for a working page, and they seemed alike.
>>
>> Further suggestions?
>>
>> -johnsu01
>
> Looking at the source code of tools.py, it seems tools.make_logger() should
> be called somewhere before anything can be logger. I'm not sure who is going
> to call it but it seems to be the direct cause of the error:
>
>> AttributeError: 'module' object has no attribute 'log'
>
> Wai yip
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
--
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php