[Cubicweb] Pyramid and REST

Rabah Meradi rabahmeradi at gmail.com
Mon Jun 8 17:35:14 CEST 2015


Sorry  I skipped that part.


2015-06-08 17:27 GMT+02:00 Christophe de Vienne <christophe at unlish.com>:

>
>
> Le 08/06/2015 16:36, Rabah Meradi a écrit :
> >> Basically: lots of routes where one should suffice. It bloats the routes
> >> namespace. It would make it a pain to use a different prefix for
> example.
> >
> > Lots of routes to assure that we only have routes for existing etype. If
> > 'some_etype' doesn't exist the view will not respond to the url
> > 'some_etype/eid.
> >
> > It's Sylvain that suggested to do it like that, perhaps he could detail
> > his reasons.
> >
>
> The proper way is to use a predicate (see the code I posted earlier).
> _______________________________________________
> Cubicweb mailing list
> Cubicweb at lists.cubicweb.org
> https://lists.cubicweb.org/mailman/listinfo/cubicweb
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20150608/fb3a6eb9/attachment-0165.html>


More information about the Cubicweb mailing list