Hey,

As discussed with Ben B., it seems that cornice-related discussions
are a better fit here than in pylons-dicuss, so moving here.

I was proposing earlier to add a CRUD that ties Cornice and
SQLAlchemy, based on Gael's resouces decorator  (see
https://github.com/mozilla-services/cornice/blob/master/docs/source/resources.rst)

I have written a prototype (outside cornice) and some examples so we
can discuss it. The idea is that the CRUD system provides a fully
working default behavior on the top on SQLA mappings but let you tweak
and change the behavior at all levels.

Here's an example of a blog app that uses it

1/ the DB model is here : 
https://github.com/mozilla-services/cornice/blob/master/docs/source/resources.rst
2/ the CRUD views are defined here:
https://github.com/mozilla-services/cornice-sqla/blob/master/examples/blog/myblog/views.py

More explanation on my blog at 
https://tarekziade.wordpress.com/2012/01/03/the-fear-of-crud

Any thoughts ?

Cheers
Tarek

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to