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"...
   - in this example, "page_config" and "ajax_config" share some arguments
   (which are mainly predicates); to avoid duplicates, is it possible in a
   decorator to get arguments defined in the previous decorator?

Best regards,
Thierry
-- 
http://pyams.readthedocs.io

-- 
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 pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWA5qBD6Jp4c0DUUJ%3DoQuffFfgb%2BzzE%3DW3Qr5T9Ww991jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to