On 7/17/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
I know, just exhausting the possibilities :)
but anyway, I tried using not_empty, and if_empty (exclusivelly), and It didn't worked. When I used if_empty, I didn't got the default value, but the empty list instead
"jerojasro" <[EMAIL PROTECTED]> writes:
> w.MultipleSelectField(name="opt",label="Options",size=5,options=[(i,str(i))
> for i in range(5) ],validator= v.Int(not_empty=True,if_empty=-45))
You can't say "not_empty" and "if_empty" at the same time. There's no sense
in that. From the above I presume you'd like to have just "if_empty", so that
this becomes a default value.
I know, just exhausting the possibilities :)
but anyway, I tried using not_empty, and if_empty (exclusivelly), and It didn't worked. When I used if_empty, I didn't got the default value, but the empty list instead
--
Jorge Godoy <[EMAIL PROTECTED] >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] Re: questions about widgets and validators Javier Rojas
- [TurboGears] Re: questions about widgets and validat... Jorge Godoy
- [TurboGears] Re: questions about widgets and validat... Javier Rojas
- [TurboGears] Re: questions about widgets and validat... Alberto Valverde

