Re: [BangPypers] Getting label of the choicefield in django form

2011-10-21 Thread Gora Mohanty
+On Sat, Oct 22, 2011 at 12:05 PM, Asif Jamadar wrote: [...] > It is returning the value ( I,e attr1 or attr2) .in this case how can I get > the label(or name) of the choicefield. > > > I tried > > for val in cf.fields['value'].choices: [...] Since you created the form, would you not already kno

[BangPypers] Getting label of the choicefield in django form

2011-10-21 Thread Asif Jamadar
I have django form which consist of one choice field with following choices Choices = [('attr1', 1), ('attr1', 2), ('attr3',3), ('attr2',1), ('attr2',2), ('attr2', 3)] If I do value = form.cleaned_data('value') It is returning the value ( I,e attr1 or attr2) .in this case how can I get the la

Re: [BangPypers] Generate Dynamic lists

2011-10-21 Thread Asif Jamadar
The numbers are just fixed values. But see I want to generate multiple lists from that one criteria list ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] remove svn checkout folder

2011-10-21 Thread Shashidhar Paragonda
Dear Python hackers >> I checkout folder from repository to sat c:/MY/Application/TEMP folder (TEMP folder i create) >> I read a file from destination folder and perform some task and close it >> Now after performing task I need to delete entire checkout folder from TE