Re: Reset static variables or a workaround

2012-02-23 Thread Jean-Michel Pichavant
Nav wrote: Hi Guys, I have a custom user form class, it inherits my own custom Form class: class UserForm(Form): first_name = TextField(attributes={id='id_firstname'}) Now, everytime UserForm() is instantiated it saves the attributes of each form members and passes it on to the new instanc

Re: Reset static variables or a workaround

2012-02-23 Thread Chris Rebert
On Thu, Feb 23, 2012 at 1:26 AM, Nav wrote: > Hi Guys, > > I have a custom user form class, it inherits my own custom Form class: > > class UserForm(Form): >    first_name = TextField(attributes={id='id_firstname'}) > > Now, everytime UserForm() is instantiated it saves the attributes of > each fo

Reset static variables or a workaround

2012-02-23 Thread Nav
Hi Guys, I have a custom user form class, it inherits my own custom Form class: class UserForm(Form): first_name = TextField(attributes={id='id_firstname'}) Now, everytime UserForm() is instantiated it saves the attributes of each form members and passes it on to the new instance. I understa