class Controller(Object): def __init__(self, app): super().__init__() self.app = app self.view_constructor = XmlViewConstructor(self.app) self.view_name = self.__class__.__name__[:-10] def render(self): self.view_constructor.construct(self.view_name) self.view = self.view_constructor.view self.view.render()
class Controller(Object): def __init__(self, app): super().__init__() self.app = app self.view_constructor = XmlViewConstructor(self.app) self.view_name = self.__class__.__name__[:-10] def render(self): self.view_constructor.construct(self.view_name); self.view = self.view_constructor.view self.view.render()
def __init__(self, app): super().__init__() self.app = app self.view_constructor = XmlViewConstructor(self.app) self.view_name = self.__class__.__name__[:-10]