Hi all, Lately I've worked on a REST API where I tried to use class-based views that inherit from a base view class. I struggled a bit until I got the approach working, so I thought I'd write up the solution in case anyone else wonders about this. It is somewhat inspired by Cornice but I wanted to get it working without an additional library: http://codelike.com/blog/2014/04/27/a-rest-api-with-python-and-pyramid/
For the impatient/tl;dr: the post contains a code snippet for a @register_views decorator that you can use to inherit from a base CRUD view. -- 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.
