Re: [Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Gustavo Narea
On Monday January 26, 2009 17:50:25 Florent Aide wrote: > this won't work with urls of the form: > > /blog/post/post_id > > and thus we'll need to devise something more, like introspection of > the decorated controller's method's args... That's a good point. Fortunately I read this email before se

Re: [Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Florent Aide
On Mon, Jan 26, 2009 at 4:49 PM, Gustavo Narea wrote: > Hello, Florent! > > On Monday January 26, 2009 13:55:07 Florent Aide wrote: >> The issue is that the request to the db needs to filter based on a >> parameter that is posted on the controller method I protected with >> @require. >> At the mom

Re: [Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Gustavo Narea
On Monday January 26, 2009 16:18:36 Florent Aide wrote: > a here is the patch that would permit to write the kind of predicates > I need... Gustavo, what do you think? Is that ok with you to apply > this on the trunk. You broke compatibility anyway so why not break it > a little more... :) Well, I

Re: [Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Gustavo Narea
Hello, Florent! On Monday January 26, 2009 13:55:07 Florent Aide wrote: > The issue is that the request to the db needs to filter based on a > parameter that is posted on the controller method I protected with > @require. > At the moment the check_auth function takes only "predicate" and > "enviro

Re: [Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Florent Aide
On Mon, Jan 26, 2009 at 1:55 PM, Florent Aide wrote: > Hi, > > I'd like to write custom Predicates for an application using > repoze.what with TurboGears2. My predicate would perform some query on > the database and check the resulting object against predefined > criterion. a here is the patch th

[Repoze-dev] repoze.what custom predicate parameters

2009-01-26 Thread Florent Aide
Hi, I'd like to write custom Predicates for an application using repoze.what with TurboGears2. My predicate would perform some query on the database and check the resulting object against predefined criterion. The issue is that the request to the db needs to filter based on a parameter that is po