I don't usually chime in on things like this (because almost everything I do is Ajax oriented) but there's no reason to even bother with keyword parameters. Just accept varargs and process them left to right based on type: if it's a form, validate the form, if it's a validator, validate it.

That way you have:

@expose( html="my.template" )
@validate( myForm, anExtraValidatorJustForThisMethod )
def anOperation( self, arg1, arg2 ):
        pass


On 27 Dec, 2005, at 4:38 pm, Michele Cella wrote:

Also since (as Mike said) you are obviously validating input shouldn't
inputform be renamed to form?

@validate(form=..., validators=...)


--
Jeff Watkins
http://newburyportion.com/

"Just because you have the right to do something, doesn't mean it's the right thing to do."
-- Fred Friendly, former president of CBS News


Reply via email to