Re: akismet and the new comments app

2008-09-13 Thread Eric Abrahamsen

On Sep 13, 2008, at 12:46 PM, Thejaswi Puthraya wrote:

>
> On Sep 12, 7:09 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
>> Has anyone tried using akismet with the new comments contrib app?  
>> I've
>> set up a signal handler to run on 'comment_will_be_posted' and check
>> the comment with akismet, and the service is insisting my test
>> comments are spam no matter what. I'm using the voidspace python
>> akismet API, and largely copying out of the comment_utils app.
>
> http://www.djangosnippets.org/snippets/1006/

Excellent! I should have known/googled. Thanks for the pointer, that  
implementation works nicely.

Eric

>
>
>>
>> I've noticed that setting build_data=True in the comment_check call
>> doesn't seem to work: that's supposed to draw values out of
>> os.environ, but it looks like those values aren't available (it
>> complains if I don't explicitly pass them in). I'm adding them
>> manually out of request.META, but the test is still coming back
>> negative. You don't get much more than 'bad!' out of Akismet, so  
>> I'm a
>> little stumped.
>>
>> Has anyone done this yet? Is there any reason why the appropriate
>> environment values would not be available during the
>> 'comment_will_be_posted' signal stage, or there might be some other
>> settings floating around that are poisoning the whole thing? Sorry if
>> this is an unhelpful request for help, mostly I want to know if
>> anyone's been down this road yet.
>>
>> Thanks,
>> Eric
>
> --
> Cheers
> Thejaswi Puthraya
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: akismet and the new comments app

2008-09-12 Thread Thejaswi Puthraya

On Sep 12, 7:09 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Has anyone tried using akismet with the new comments contrib app? I've  
> set up a signal handler to run on 'comment_will_be_posted' and check  
> the comment with akismet, and the service is insisting my test  
> comments are spam no matter what. I'm using the voidspace python  
> akismet API, and largely copying out of the comment_utils app.

http://www.djangosnippets.org/snippets/1006/

>
> I've noticed that setting build_data=True in the comment_check call  
> doesn't seem to work: that's supposed to draw values out of  
> os.environ, but it looks like those values aren't available (it  
> complains if I don't explicitly pass them in). I'm adding them  
> manually out of request.META, but the test is still coming back  
> negative. You don't get much more than 'bad!' out of Akismet, so I'm a  
> little stumped.
>
> Has anyone done this yet? Is there any reason why the appropriate  
> environment values would not be available during the  
> 'comment_will_be_posted' signal stage, or there might be some other  
> settings floating around that are poisoning the whole thing? Sorry if  
> this is an unhelpful request for help, mostly I want to know if  
> anyone's been down this road yet.
>
> Thanks,
> Eric

--
Cheers
Thejaswi Puthraya
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



akismet and the new comments app

2008-09-12 Thread Eric Abrahamsen

Has anyone tried using akismet with the new comments contrib app? I've  
set up a signal handler to run on 'comment_will_be_posted' and check  
the comment with akismet, and the service is insisting my test  
comments are spam no matter what. I'm using the voidspace python  
akismet API, and largely copying out of the comment_utils app.

I've noticed that setting build_data=True in the comment_check call  
doesn't seem to work: that's supposed to draw values out of  
os.environ, but it looks like those values aren't available (it  
complains if I don't explicitly pass them in). I'm adding them  
manually out of request.META, but the test is still coming back  
negative. You don't get much more than 'bad!' out of Akismet, so I'm a  
little stumped.

Has anyone done this yet? Is there any reason why the appropriate  
environment values would not be available during the  
'comment_will_be_posted' signal stage, or there might be some other  
settings floating around that are poisoning the whole thing? Sorry if  
this is an unhelpful request for help, mostly I want to know if  
anyone's been down this road yet.

Thanks,
Eric

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---