On Thu, Dec 22, 2011 at 4:04 PM, Robert Forkel <[email protected]>wrote:
> > 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 these context factories around but cannot pass them > into a cornice service. > I don't see any good reason -- so I'd be tempted to fix this. I am cc'ing Ryan that did that first implementation Cheers Tarek > regards > robert > > On Dec 21, 11:00 pm, Gael Pasgrimaud <[email protected]> wrote: > > Hi, > > > > On Wed, Dec 21, 2011 at 11:24 AM, Tarek Ziadé <[email protected]> > wrote: > > > We'd love feedback & new contributors ! > > > > Looks like a clever way to build some APIs. I have a project where I > > may switch to cornice. But I have a few questions. > > > > First, are you planning to add a support for class based views ? I'd > > like to define my services like this: > > > > @cornice.service(path='/users') > > class User(object): > > > > def __init__(self, request): > > self.request = request > > > > def get(self): > > """do get""" > > > > Where get / post / put / delete and index (to get a listing) routes > > will be automatically added if they are implemented. This is something > > that missing from Pylons the framework (at least for me). > > > > Does cornice support sub resources ? (eg: with a path like > /users/{id}/pages/) > > > > And the last one. Can we use the pyramid authentication/authorisation > > stuff with cornice ? > > > > > > > > > Cheers > > > Tarek > > > > > -- > > > Tarek Ziadé |http://ziade.org > > > > > -- > > > You received this message because you are subscribed to the Google > Groups "pylons-discuss" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > [email protected]. > > > For more options, visit this group athttp:// > groups.google.com/group/pylons-discuss?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- Tarek Ziadé | http://ziade.org -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
