I'm sure there's a better way...but I've typically handled stuff like that 
by importing my own decorator, which just invokes the package decorator 
with my common arguments.

This is pseudocode and off the top of my head..


    from custom import my_resource

    @my_resource(path='/login')
    def foo():
       pass

and my_resource is imported as something like

    import resource

    def my_resource(**kwargs)
       return resource(renderer='json', cors_policy= CORS_POLICY, **kwargs)

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to