Hello,
I am trying to force a user to put in a 4 character year 1999,2004 etc
How do I do it in validators?

This code below gives me a number and size of the field. Is there
another attribute that will force it to be 4 long?

YEAR=widgets.TextField(validator=validators.Number(not_empty='True'),attrs={'size':4})

Lucas



-- 
-- 
Vim auto completion for python
http://lucasmanual.com/mywiki/FrontPage#head-8ce19b13e89893059e126b719bebe4ee32fe103c
TurboGears from start to finish:
http://www.lucasmanual.com/mywiki/TurboGears

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to