Logging failures (was Re: Comments again...)
walt <walt-76oD7HcvC/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
I completely whacked the Pyblosxom directory under site-packages/ before
I installed 1.0.0 (just to be safe :). Could there be modules hiding
out anywhere else?
Optionally, is there a way (verbose run or something) that I can verify
exactly which module is being used?
On Thu, 3 Jun 2004, Ted Leung wrote:
> There've been a few variants of implementations of the log. Are you
> sure that
> you don't have mix of files from different pyblosxom versions?
>
> Ted
>
> On Jun 2, 2004, at 3:47 PM, walt wrote:
>
> >
> > So the comments plugin is dying because it gets some error while
> > reading
> > the comments. I'm not sure why it can't read the comments (although
> > I'm
> > half-suspecting I forgot to install pyXML. I'll check that.)
> >
> > Anyway, when it goes to log it dies with this (just the tail here):
> >
> > File "/home/www/htdocs/plugins/comments.py", line 447, in
> > cb_story_end
> > entry['comments'] = readComments(entry, config)
> > File "/home/www/htdocs/plugins/comments.py", line 94, in readComments
> > tools.log("Couldn't read comments for entry: ",entry)
> > AttributeError: 'module' object has no attribute 'log'
> >
> > This is odd because I checked the tools.py module that is installed and
> > it definitely creates a global log variable in make_logger.
> >
> > I'm running Python 2.2.1 on OpenBSD. Any thoughts?
> >
> >
> > On Wed, 2 Jun 2004, walt wrote:
> >
> >>
> >> I knew all I had to do was send the email and I would immediately find
> >> the answer. If the comment plugin is active then the standard story
> >> template for a single entry is overridden by comment-story.html which
> >> also incorporates comment-form.html. That'll do.
> >>
> >> Now I just need to work out why I die if a story has a comment. The
> >> first error is that it can't write the real error out to the log.
> >> I'll
> >> see what I can dig up.
> >>
> >>
> >> On Wed, 2 Jun 2004, walt wrote:
> >>
> >>>
> >>> So... how do I add a comment to a story?
> >>>
> >>> I've put the plugin in-place. It verifies okay. I added
> >>> $num_comments
> >>> to my story.html template so now I get a nice 'Comments: 0' for all
> >>> my
> >>> entries.
> >>>
> >>> But what's the link to get someone to the form to add a comment? I
> >>> can't find it anywhere. It doesn't appear to be in the README or in
> >>> any
> >>> of the flavour templates (the base ones or the plugin ones).
> >>>
> >>> Am I just completely missing something?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> This SF.Net email is sponsored by the new InstallShield X.
> >>> From Windows to Linux, servers to mobile, InstallShield X is the one
> >>> installation-authoring solution that does it all. Learn more and
> >>> evaluate today! http://www.installshield.com/Dev2Dev/0504
> >>> _______________________________________________
> >>> pyblosxom-users mailing list
> >>> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >>> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
> >>>
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by the new InstallShield X.
> >> From Windows to Linux, servers to mobile, InstallShield X is the one
> >> installation-authoring solution that does it all. Learn more and
> >> evaluate today! http://www.installshield.com/Dev2Dev/0504
> >> _______________________________________________
> >> pyblosxom-users mailing list
> >> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
> >>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the new InstallShield X.
> >> From Windows to Linux, servers to mobile, InstallShield X is the one
> > installation-authoring solution that does it all. Learn more and
> > evaluate today! http://www.installshield.com/Dev2Dev/0504
> > _______________________________________________
> > pyblosxom-users mailing list
> > pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
> >
> ----
> Ted Leung Blog: <http://www.sauria.com/blog>
> PGP Fingerprint: 1003 7870 251F FA71 A59A CEE3 BEBA 2B87 F5FC 4B42
> This message is: [ ] bloggable [x] ask first [ ] private
>
>
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504