Re: comment_rejected_words?

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Well, the comments plugin itself doesn't reject anything.  You'll need my 
wbgcomment_blacklist plugin which gets called by the comments plugin and 
will reject the comment based on words in the comment itself.

You can get it here.

    http://www.bluesock.org/~willg/dev/pyblosxom/

Now that I'm looking at the comments plugin documentation, it does mention 
the comment_rejected_words config setting--but that code isn't in there. 
I'll fix that in the next release.

/will


On Fri, 13 May 2005, Joseph Reagle wrote:
>
> I've added the following to my config.py:
> [[[
> py['comment_rejected_words'] = ['casino']
> ]]
>
> In comments.py I logged the argdict, and casino is present:
> [[[
> 2005-05-13 18:04:12,260 INFO "reject argdict = {'comment': {'description':
> u'check out this great casino', 'pubDate': '1116021852.26', 'author':
> u'test', 'title': u'Epistemic stances', 'source': '', 'link': u'test',
> 'email': u'test'}, 'request': Request}"
> ]]]
>
> but the result is:
> [[[
> reject = None
> ]]]
>
> Is there an actual callback chain named "comment_reject" defined anywhere?


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.