Re: How to get comments.py work?
Ted Leung <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Organization | Sauria Associates, LLC |
| Message-ID | <[email protected]> |
On 8/13/2003 1:17 PM, Joseph Reagle wrote:
>On Wednesday 13 August 2003 14:33, Ted Leung wrote:
>
>
>>"your pyblosxom directory" is the directory where your CGI scripts for
>>pyblosxom are. I'll update the README
>>for this, it changed when the distutils work got done.
>>
>>
>
>Ok, it's there:
> urd:/home/reagle/data/2web/reagle.org/joseph> ls
> 1996/ 2002/ base.css images/ plan/ tb.cgi
> 2001/ 2003/ blog index.html pyblosxom/ weblog/
>"blog" is the pybloxsom.cgi renamed and enabled by an apacahe .htaccess .
>
>The following URL:
> http://reagle.org/joseph/tb.cgi
>complains that config is not known, so if I modify tb.cgi to have:
> import sys
> sys.path.append("/home/reagle/data/2web/reagle.org/joseph/pyblosxom/web")
>I get XML back of the form:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <response>
> <error>1</error>
> <message>not trackback</message>
> </response>
>and trying to post a comment
>
>
This is the correct output if you just try to access the trackback URL.
It needs a bunch of form arguments to work, but
those will be supplied by the weblog that is tracking back to you.
Did you just rename trackback.cgi to tb.cgi?
>
>
>>>Then in step 6 it says, "8. Edit the comment-story, comment, and
>>>comment-form templates. You will have to adjust trackback URI's to
>>>match your webserver configuration." This then makes me think trackback
>>>is mandatory? And what exactly is it that I have to tweak? The action
>>>attribute of the form element in comment-form.html?
>>>
>>>
>>Trackback is not mandatory. If you don't install trackback.cgi, you
>>won't get trackbaks.
>>
>>You may need to change the value of trackback:ping on line 20 of
>>comment-story.html, depending on how trackback.cgi is mapped to a URL.
>>What is there now assumes that $base_url/trackback is the URL for
>>trackback.cgi.
>>
>>
>
>I'm still confused, it sounds like trackback.cgi *is* mandatory to use the
>comments.
>
>Most of the examples give the trackback url as:
> /blog/tb.cgi?__mode=list&tb_id=$tb_id
>which makes we wonder how folks are putting the tb.cgi is a "virtual" space
>served by an apache rewrite... maybe another rewrite... Or maybe that's
>just the approach I took. In any case, it'd probably be useful for
>pyblosxom to come with comments and trackbacks enabled, and then a user
>could easily turn them off with the config.ini
>
>
This code is leftovers from before we had our own trackback code. It
should probably be removed. The problem
with having trackbacks enabled is that you have to know how people are
setting up their rewrite rules or whatever way they are mapping the
URI's. I guess that we could just determine a mapping for people.
Ted
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01