You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
My questions are :
Best regards,
Thierry
The text was updated successfully, but these errors were encountered: