Mark Ramm wrote:

> I think there was a notion to make validate into a "real"
> decorator with no particular hooks in the TurboGears controller's
> __call__ method.  That would make it easy enough to replace the TG
> validator with custom validators from tosca, or wherever.

Count me as a huge -1 on this idea.  "Real" decorators are often
"real" difficult to debug.  I'd greatly prefer it if we could just
make the existing validate decorator more extensible by allowing you
to pass in callables.  All of the gain, with none of the hassle!

We specifically did it this way, because we didn't like how the
previous TurboGears 1.x decorators ended up nesting your controller
methods tons of times, producing insane stack traces.

--
Jonathan LaCour
http://cleverdevil.org


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

Reply via email to