CRUD in Pyramid, using Cornice and SQLAlchemy

2011-12-22 Thread Tarek Ziadé
Hey Gael's idea on using a class to define all methods for a service, gave me another idea: add a light CRUD on the top of SQLAlchemy, in Cornice I post it here and now because I think it overlaps a little bit Gael's proposal The idea would be to point to Cornice an SQLAlchemy mapping and have

Re: Cornice 0.6 released

2011-12-22 Thread Tarek Ziadé
On Thu, Dec 22, 2011 at 4:04 PM, Robert Forkel xrotw...@googlemail.comwrote: One more thing which bothered me when looking at the Service implementation: Why the 'acl' parameter and not a full context factory? I'm playing with cornice to add an API to an existing webapp, so I already have

Re: CRUD in Pyramid, using Cornice and SQLAlchemy

2011-12-22 Thread Gael Pasgrimaud
On Thu, Dec 22, 2011 at 4:44 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: Hey Gael's idea on using a class to define all methods for a service, gave me another idea: add a light CRUD on the top of SQLAlchemy, in Cornice For me this has nothing to do in cornice. Please keep this stuff backend

Re: CRUD in Pyramid, using Cornice and SQLAlchemy

2011-12-22 Thread Robert Forkel
I'm somewhat skeptical about the usefulness of this. I have a couple of legacy apps which have been built like this - the routes tied to the database model - and came to appreciate the level of indirection added by routes. In my experience the direct relation between db objects and resources in

Re: CRUD in Pyramid, using Cornice and SQLAlchemy

2011-12-22 Thread Tarek Ziadé
On Thu, Dec 22, 2011 at 4:53 PM, Gael Pasgrimaud g...@gawel.org wrote: On Thu, Dec 22, 2011 at 4:44 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: Hey Gael's idea on using a class to define all methods for a service, gave me another idea: add a light CRUD on the top of SQLAlchemy, in

Ptah 0.2 released

2011-12-22 Thread Alan Runyan
Hi I wanted to write to the broader community to announce we have a release which we feel can be used everyone. Ptah is a opinionated web development environment. It uses SQLAlchemy. It provides a number of features which are integrated: forms, data model, security, layouts, REST API,