Re: extending newforms Field and Form classes

2007-05-17 Thread Malcolm Tredinnick
On Thu, 2007-05-17 at 12:51 -0700, Dannoo wrote: > Malcolm, > > Thanks for the quick understandable response. > > So in order to this I would create two classes: > - one a widget class that overrides render method - to create the > comma delimited string from the value ( a list of string ) sent.

Re: extending newforms Field and Form classes

2007-05-17 Thread Dannoo
Malcolm, Thanks for the quick understandable response. So in order to this I would create two classes: - one a widget class that overrides render method - to create the comma delimited string from the value ( a list of string ) sent. - one a field class that overrides the clean method - to creat

Re: extending newforms Field and Form classes

2007-05-17 Thread Malcolm Tredinnick
On Thu, 2007-05-17 at 11:58 -0700, Dannoo wrote: > I have a few questions about the best ways to extend the Field and > Form classes that are part of django newforms. > > For example, create a Field that is like a charField but gets a list > of strings which should be rendered as a comma delimite

extending newforms Field and Form classes

2007-05-17 Thread Dannoo
I have a few questions about the best ways to extend the Field and Form classes that are part of django newforms. For example, create a Field that is like a charField but gets a list of strings which should be rendered as a comma delimited in the text widget. When that filed is cleaned the comma