On 12/27/05, Mike Orr <[EMAIL PROTECTED]> wrote:
>
> @validate sounds best because that's what it's doing.  And if anybody
> asks what's it validating, what else can it be but the input?

That was what I was thinking. You're either validating that set of
validators or the inputform (or both).

> So pages that just display would use @expose, and pages that receive
> input would use both @??? and @expose?  So the form would be both an
> @??? argument and in the return dictionary?

The existing usage would still exist for backwards compatibility.

Here's an example:

@expose(html="foo")
def index(self):
    return dict(form=myform)

@expose()
@validate_or_process_or_whatever(myform)
def save(self, field1, field2):
    ...do something...

Kevin

Reply via email to