Re: [openstack-dev] [tuskar] pecan models vs. db models

2013-09-24 Thread mar...@redhat.com
On 23/09/13 21:59, Doug Hellmann wrote: > On Mon, Sep 23, 2013 at 12:31 PM, Petr Blaho wrote: > >> Hi, >> >> during my work on getting tests to pass for >> https://review.openstack.org/#/c/46947/ I discovered that we are >> misusing pecan models for HTTP representation of Resources. >> >> In cont

[openstack-dev] [tuskar] pecan models vs. db models

2013-09-23 Thread Petr Blaho
Hi, during my work on getting tests to pass for https://review.openstack.org/#/c/46947/ I discovered that we are misusing pecan models for HTTP representation of Resources. In controllers pecan/wsme calls actions with pecan model prepopulated from HTTP request's params. For example, when creatin

Re: [openstack-dev] [tuskar] pecan models vs. db models

2013-09-23 Thread Doug Hellmann
On Mon, Sep 23, 2013 at 12:31 PM, Petr Blaho wrote: > Hi, > > during my work on getting tests to pass for > https://review.openstack.org/#/c/46947/ I discovered that we are > misusing pecan models for HTTP representation of Resources. > > In controllers pecan/wsme calls actions with pecan model p