Max Ischenko wrote:
> Michele,
>
> Thanks for a nice reply.
>
> I think differences are mostly come from our personal preferences; I think 
> I'd be just as happy with the solution you propose.
>

Hi Max,

Thanks to you again.

During the day I've got this new idea, is a little improvement IMHO
that leverage python possibilities (ie. not being a strong typed
language ;-)):

1) New validator

TextField(validator=Int(not_empty=True))

2) Tweak to the default validator

CheckBoxList(validator={'not_empty'=True})

Rationale:

1) As I said validator and validator_args are mutually exclusive so it
doesn't make sense to add a new parameter when only one of the two can
be used
2) All validation aspect are clearly bounded to the validator parameter
and FE, there is only one and clear way of doing this thing
3) I don't like validator_args as any one out there I think ;-)

Opinions?

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to