Re: Trackback (Was: PyBlosxom 1.0 Released!}
Ted Leung <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On May 29, 2004, at 2:24 AM, Joseph Reagle wrote:
> On Saturday 29 May 2004 07:20, Ted Leung wrote:
>>> from: can't read /var/mail/Pyblosxom
>>> ./trackback: line 14: tb_good_response: command not found
>>> ./trackback: line 19: tb_bad_response: command not found
>>> ./trackback: line 25: syntax error near unexpected token `('
>>> ./trackback: line 25: `def cb_start(args):'
>>> ]]]
>>
>> The stuff right here -- errors at lines 14, 19, 25, suggest that the
>> trackback.py file is corrupt or something, since it looks like there
>> are syntactic errors with being reported.
>>
>> I no idea what the line
>>
>> from: can't read /var/mail/Pyblosxom
>>
>> means.
>
> That's a red herring most likely, since I tried to invoke it from the
> command line and there's no declaration stating whether its a python
> script
> or not. Which leads me to realize I fundamentally misunderstand the new
> trackback and its not like the old one. Is it not supposed to be an
> executable script?
>
> Below, it says:
>
> [[[ http://wiki.subtlehints.net/moin/InstallingComments
> If you want trackbacks (this is optional), copy
> contrib/plugins/comments/plugins/trackback.py to your plugins
> directory.
> Then add trackback to the load_plugins property in your config.py file.
> ]]]
>
> So I'm not even supposed to place the trackback file in /joseph/? How
> would
> it get invoked?
One of the changes in 1.0 is a change in the way that these kinds of
plugins are
handled. The new handle callback allows you insert handlers that can
intercept
URI processing before it gets to the pyblosxom "core".
If you move trackback.py to your plugins dir, that should take care of
things.
----
Ted Leung Blog: <http://www.sauria.com/blog>
PGP Fingerprint: 1003 7870 251F FA71 A59A CEE3 BEBA 2B87 F5FC 4B42
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click