Re: converting a string object into class object

2009-02-08 Thread Saurav
Thanks Daniel and Bruno, your tips were gr8. It helped me out a lot. I am a newbie in python as well as Django, and I m trying to learn them ASAP. I had to finish some work quickly and so had pushed the question here. Thanks anyways -Saurav On Feb 6, 2:24 pm, bruno desthuilliers wrote: > On

Re: converting a string object into class object

2009-02-06 Thread bruno desthuilliers
On 6 fév, 08:01, Saurav wrote: > Hi, > > I want to know if its possible to convert a string object into class > object. I assume you mean "retrieve an existing class object by it's name". (snip) > http://dpaste.com/117323/ > > at line no 40, f = model_name.__name__+"Form"(instance=a) Won't

Re: converting a string object into class object

2009-02-06 Thread Daniel Roseman
On Feb 6, 7:01 am, Saurav wrote: > Hi, > > I want to know if its possible to convert a string object into class > object. > Basically Im trying to make some generic methods for changing the data > in the models > > For your convinience, Im providing you the link to the code where Im > facing the

converting a string object into class object

2009-02-05 Thread Saurav
Hi, I want to know if its possible to convert a string object into class object. Basically Im trying to make some generic methods for changing the data in the models For your convinience, Im providing you the link to the code where Im facing the problem http://dpaste.com/117323/ at line no 40,