"Randall" <[EMAIL PROTECTED]> writes:

>>>@expose()
>>>@validate(form=myform)
>>>def create(self, tg_errors, **data):
>>>    if tg_errors:
>>>        return self.index("foo")
>
> I tried this and got an exception:
>
> TypeError: create() takes at least 2 non-keyword arguments (1 given)
>
> How to I get tg_errors sent in as an argument?

Put "tg_errors = None" instead of just "tg_errors".  This will provide a
default value.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to