--
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-dis...@googlegroups.com.
To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,You are using the raw values from the request; to get the behaviour you want you need to feed these through the validators. Have a look at the tutorial to see how.Paul
Sent from my iPhone
Hi guys,
I encounter a little problem with my checkbox fields... They give me as result the values 'on' (for True) and None (for False).
So if the value is None,in my controller my keyword doesn't exist and I can't catch it in my 'post' function...
Illustration with an example :
* In my widget :
twf.CheckBox(id="url", label_text="I want to upload the file from this URL : ", help_text="tick it if you want to download it in the application")
* In my controller :
for k in kw:
print k
---> and if 'url' is False (None with the new system...), 'url' doesn't exist... And it's problematic for dynamic form with dynamic fields....
Can anyone is able to help me to convert this new boolean value system to the good old boolean system.
Thanks a lot,
Yoann
--
You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-dis...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-discuss+unsubscrib...@googlegroups.com.
To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to toscawidgets-discuss+unsubscrib...@googlegroups.com.
To post to this group, send email to toscawidge...@googlegroups.com.
Visit this group at http://groups.google.com/group/toscawidgets-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Compare it to https://turbogears.readthedocs.org/en/rtfd2.2.2//main/TwForms.html, there is an example with the @validate decorator...