Re: nospam plugin
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 03/08/05 17:37, Murray Cumming wrote:
> On Sun, 2005-03-06 at 19:16 +0100, Steven Armstrong wrote:
>> It seems you have an somewhat old version of PIL installed that doesn't
>> support truetype fonts. As an alternative you can download some .pil
>> fonts from [1].
>>
>> Then change line +-126 in nospam.py:
>> from:
>> font = ImageFont.truetype(_fontPath, _fontSize)
>> to:
>> font = ImageFont.load("/path/to/pilfonts/lubB10.pil")
>
> Thanks. That works until I can get the PIL updated:
>
> Strangely though, it always says that the secret number does not match.
>
It would be interesting what values nospam and sess_nospam actually have.
You could do something like:
data['nospam'] = nospam
data['sess_nospam'] = sess_nospam
in nospam.cb_comment_reject, and then, in one of your templates add:
nospam: $nospam <br />
sess_nospam: $sess_nospan <br />
Alternatively have a look how logging is done in the comments.py plugin
(cb_start). And use something like that in nospam.cb_comment_reject.
hth
cheers
Steven
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click