In the drived class I am setting the value for base class property. Also in base class I am setting controller property to c object property, The base class __after__ function, c.main_panel = self.main_panel Here main_panel value is updating from drived class constructor.
Why i am doing this, instead of updating c object every action i want to update c object in single place. The __after__ function will be executed after a function(action) executed. So i try to set base class property(main_panel ) at drived class constructor. On Aug 24, 5:31 pm, "Paweł Stradomski" <[EMAIL PROTECTED]> wrote: > 2008/8/24 <[EMAIL PROTECTED]>: > > > class ShoppingController(BaseController): > > def __init__(self): > > BaseController.main_panel = "Shopping" > > ............. > > ............. > > You're setting the property on the controller instance, not on c object. > > -- > Paweł Stradomski --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
