Re: nospam plugin
Murray Cumming <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2005-03-08 at 18:11 +0100, Steven Armstrong wrote:
> 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 />
Thanks. I tried that here:
http://www.murrayc.com/blog/tech/2005-03-02-17-33?cmt=1#comments
nospam is always 0 and sess_nospam is always 1. I guess there are not
meant to be boolean values.
--
Murray Cumming
[email protected]
www.murrayc.com
www.openismus.com
-------------------------------------------------------
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