On Monday 31 August 2009 08:08:50 am you wrote:
> On Monday 31 August 2009 07:51:52 am you wrote:
> > > Either make sure you always pass in userip when you instantiate the
> > > form, or (preferably) change the __init__ so that userip is in the
> > > kwargs dictionary, and use kwargs.pop('userip') to get its value
> > > before you hand off to super().
> > > --
> > > DR.
> >
> > Ok, changed the __init__ to look like this:
> >
> > class ReCaptchaForm(forms.Form):
> >     captcha = forms.CharField(widget=ReCaptchaWidget)
> >
> >     def __init__(self,  *args,  **kwargs):
> >         super(ReCaptchaForm,  self).__init__(self,  *args,  **kwargs)
> >         if kwargs.has_key('userip'):
> >             self.userip = kwargs.pop('userip')
> >
> >
> > I still get the same error.
> >
> > Mike
>
Ok, I did change it so kwargs.pop() comes _before_ the super, no change in
the error.

(sorry was 1/2 sleep when I implemented and answered it the first time)


 Mike



-- 
In my end is my beginning.
                -- Mary Stuart, Queen of Scots

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to