-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Hi,
I created two new Python decorators in a Pyramid's project using Venusian to define custom views and add functionalities to them.
I can have several decorators for the same view:
@page_config(name='myview.html', ...)
@ajax_config(...)
class MyViewClass(object):
"""My custon view class"""
My questions are :
- how can I define decorators order? Actually, whatever order I use, "ajax_config" decorator is always called before "page_config"...
- to avoid duplicates, is it possible in a decorator to get arguments defined in the previous decorator?
Best regards,
Thierry
Metadata
Metadata
Assignees
Labels
No labels