[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

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've

[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 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 sending

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] [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 m...@gustavonarea.net 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