On Fri, Apr 11, 2008 at 8:52 AM, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > > Christoph Zwerschke schrieb: > > > Unfortunately, dispatch_error is trickier since it is not an ordinary > > generic function, but a MultiorderGenericFunction, and since > > register_handler is doing some weird stuff. Needs work. > > Update: I was able to work around these difficulties: > http://paste.turbogears.org/paste/2494 > is errorhandling.py rewritten to use only peak.rules. > > I was also able to rewrite database.py and sacommand.py, > that was straightforward. > > And it should be very easy to create a TurboJson 1.1 version that > requires Python 2.4 and peak.rules instead of RuleDispatch. > > This leaves us with controllers.py, where RuleDispatch is used for the > expose decorator. This is really a bit tricky, since it is somewhat > complex and uses a custom dispatch strategy. But principally, with a > little work and delving into the existing code it should be possible to > rewrite this using either peak.rules or some hand-written dispatcher.
ChrisZ you're the man! :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
