Daniel Fetchinson schrieb: > So the tg_errors argument has been passed correctly and the dummy > variable still contains the Root object. This made me believe I need > the dummy variable. > > I don't understand fully what's going on especially because Chris > suggested that the dummy variable is not needed. Any ideas what is > really happening behind the scenes?
I've looked into errorhandling again and you're right, the first argument of an error handler is always the controller. I believed the error handler is a bound method, but at the time when you're assigning the error handler, it's not a bound method yet. So the signature has to be compatible to the unbound method. That's why you need the dummy parameter, just name it "controller" to make this more clear. Sorry to be misleading. -- Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

