Re: [Repoze-dev] [tg-trunk] [r.what] Backwards incompatibility in exchange for better context sensitivity?

2009-01-26 Thread Florent Aide
On Tue, Jan 27, 2009 at 3:34 AM, Jorge Vargas wrote: > sounds interesting. Just a though can't we make it so that. > > evaluate(environ, credentials, variables=None) this would require to change the signature of all the previously written Predicates, including the one out there in the wild we do

Re: [Repoze-dev] [tg-trunk] [r.what] Backwards incompatibility in exchange for better context sensitivity?

2009-01-26 Thread Jorge Vargas
On Mon, Jan 26, 2009 at 1:36 PM, Gustavo Narea wrote: > > Hello, everybody. > > Florent and I have been discussing about context-sensitivity in > repoze.what-1.0 predicates and there's a good enhancement that may be applied > but will break backwards compatibility, and I won't break backwards > in

Re: [Repoze-dev] [r.what] Backwards incompatibility in exchange for better context sensitivity?

2009-01-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gustavo Narea wrote: > Hello, everybody. > > Florent and I have been discussing about context-sensitivity in > repoze.what-1.0 predicates and there's a good enhancement that may be applied > but will break backwards compatibility, and I won't break

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

[Repoze-dev] [r.what] Backwards incompatibility in exchange for better context sensitivity?

2009-01-26 Thread Gustavo Narea
Hello, everybody. Florent and I have been discussing about context-sensitivity in repoze.what-1.0 predicates and there's a good enhancement that may be applied but will break backwards compatibility, and I won't break backwards incompatibility unless you want it. If you have repoze.what predi

[Repoze-dev] repoze.bfg 0.6.5 released

2009-01-26 Thread Chris McDonough
repoze.bfg 0.6.5 was just put into the http://dist.repoze.org/lemonade/dev/simple/ index. This release has a couple of new features, but it's mostly a speed micro-optimization release. As a result, a repoze.bfg "hello world" application runs (for me) at somewhere between 900 and 1100 req/sec on a

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