On Monday February 2, 2009 18:21:24 Christoph Zwerschke wrote: > My idea was to let TG2 provide a request-aware sublass of the Predicate > class where the environ parameter is optional and set to request.environ > if not specified.
But how are you going to do with the predicates themselves? They all will subclass Predicate, not the TG2 base predicate. > TG2 could also monkey-patch the original Predicate class That would be ugly from my point of view and I don't think the TG project will accept to maintain a custom edition of a package. > or use the plugin-mechanism to somehow make repoze.what aware of > the global request object. How? If you're thinking about thread-local/Pylons' StackedObjectProxy, that can't happen in repoze.what -- here's why: http://groups.google.com/group/turbogears-trunk/msg/77e6cb9807d3b2a1 Predicates can't be evaluated if you don't pass the environ every time you want to evaluate them. Cheets! -- Gustavo Narea <http://gustavonarea.net/>. Get rid of unethical constraints! Get freedomware: http://www.getgnulinux.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
