On Wednesday 27 August 2008 18:42:21 Matt Wilson wrote:
> I got a controller that accepts a start_date and a stop_date
> parameter.  I want to validate that the stop_date is after the
> start_date.
>
> I want to do this in my @validate, not in my controller guts.
>
> I read the example schema validator about matching passwords, but I
> need more help.  Is this even possible?

Yes, I've done it but don't have the code here. Yet it is really simple - just 
compare the two dates in a chained_validator. The equal password validator is 
a perfect template for that.

Diez

--~--~---------~--~----~------------~-------~--~----~
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