I do not know what @Other.decorator() does.
My guess is
1) @Other.decorator without ()
2) swap the order of the recorators.

On Wednesday, 17 July 2013 07:30:26 UTC-5, Eduardo Cruz wrote:
>
> I have a function like this 
>
> @request.restful()
> def api():
>     def GET(*args,**vars):
>         return dict()
>     def POST(*args,**vars):
>         return dict()
>     def PUT(*args,**vars):
>         return dict()
>     def DELETE(*args,**vars):
>         return dict()
>     return locals()
>
> then I try to use another decorator,
> so it was like this
>
> @Other.decorator()
> @request.restful()
> def api():
>     def GET(*args,**vars):
>         return dict()
>     def POST(*args,**vars):
>         return dict()
>     def PUT(*args,**vars):
>         return dict()
>     def DELETE(*args,**vars):
>         return dict()
>     return locals()
>
>
>
> And It was given me an error 
> TypeError: _decorated() takes exactly 1 argument (0 
> given)<http://127.0.0.1:8000/admin/default/errors/ecturn#>
>
> So I just remove the other decorator but it keeps giving me that error, 
> What did I do wrong?
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to