Re: Problem subclassing Widget with value_from_datadict

2009-08-31 Thread Mike Ramirez
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')

Re: Problem subclassing Widget with value_from_datadict

2009-08-31 Thread Mike Ramirez
On Monday 31 August 2009 05:48:18 am Daniel Roseman wrote: > On Aug 31, 11:58 am, Mike Ramirez wrote: > > On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote: > > > I think you're going to need to post your view code as well. It seems > > > that the form is passing

Re: Problem subclassing Widget with value_from_datadict

2009-08-31 Thread Daniel Roseman
On Aug 31, 11:58 am, Mike Ramirez wrote: > On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote: > > > I think you're going to need to post your view code as well. It seems > > that the form is passing itself, rather than its data, to the widget, > > so I'd guess there's

Re: Problem subclassing Widget with value_from_datadict

2009-08-31 Thread Mike Ramirez
On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote: > I think you're going to need to post your view code as well. It seems > that the form is passing itself, rather than its data, to the widget, > so I'd guess there's something weird about the way it's being > instantiated. > -- > DR.

Re: Problem subclassing Widget with value_from_datadict

2009-08-31 Thread Daniel Roseman
On Aug 30, 8:59 pm, Mike Ramirez wrote: > hey, >   I'm trying to write a recaptcha widget using the recaptcha client, the > problem I'm having is that redefining value_from_datadict I get this > error: 'ContactForm' object has no attribute named 'get'.  This happens on > the

Problem subclassing Widget with value_from_datadict

2009-08-30 Thread Mike Ramirez
hey, I'm trying to write a recaptcha widget using the recaptcha client, the problem I'm having is that redefining value_from_datadict I get this error: 'ContactForm' object has no attribute named 'get'. This happens on the initial loading of the from. here is the traceback: