Just look at this sweetness:
from tg import validate
class DBMechanicValidate(validate):
def _before_validate(self, controller, params):
sprocket =
controller.im_self.sprockets[params['dbsprockets_id']]
form = sprocket.view.widget
self.validators = form
Makes me smile just to think about it.
On Jan 25, 8:57 pm, iain duncan <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-25-01 at 19:46 -0800, percious wrote:
> > Ok, I committed this valuable change, the change I made will not
> > require a change to pylons, but if we do change pylons, we can
> > eliminate one if statement in the validator.
>
> That sounds like a reasonable amount of overhead! ;-)
>
> Thanks for all your work Chris.
> Iain
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---