On Oct 14, 2:20 pm, RickMeyer <[EMAIL PROTECTED]> wrote: > On Oct 9, 10:20 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: > > > > > On Thu, Oct 9, 2008 at 7:27 PM, EricHolmberg <[EMAIL PROTECTED]> wrote: > > > >> Are you sure? I've been putting 'c' assignments in > > >> BaseController.__call__ without problem, for things like the default > > >> page title and breadcrumbs. > > > > It works fine with debugging enabled, have you used it with the > > > release version as well? > > > I'm using it in production, yes. > > > >> The problem here seems to be that BaseController.__call__ is not > > >> called at all. If .__before__ doesn't work, I think you'll have to > > >> override WSGIController._dispatch_call() (the superclass of > > >> BaseController, defined in pylons.controllers.core), which is what > > >> does the normal action lookup and calling. > > > > Oh! Do I need to do a super(EmbeddedtracController, > > > self).__call__(...) here? > > > Not exactly, because you're not doing the superclass code and then > > something before or after it. You're doing something in the middle of > > the superclass code, and you can't call part of a parent method, > > break, execute your code, and then continue the parent method. But > > you can override ._dispatch_call(), which happens to be the part of > > code you want to change. > > > I've heard things pro and con about super(). The consensus seems to > > be, if you know which superclass method to call, call it directly > > rather than using super(). > > > -- > > Mike Orr <[EMAIL PROTECTED]> > > I have the distinct pleasure of taking over this project from Eirc, > I'm VERY new to the system and would like a little more information, > please. > > Where can I find the BaseController.__call__ ? > I know this is a newbie question but it is part of this thread, take > it easy on me.
In a new project, it's in yourproject.lib.base. -wlb --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
