Table of Contents

Class: IView | Twisted-0.19.0/twisted/python/mvc.py
--- | ---
A MVC View
Base Classes |
--- | ---
components.Interface
Methods |
--- | ---
__init__ controllerFactory modelChanged setController
| __init__
    __init__ ( model,  controller=None )
A view must be told what it's model is, and may be told what it's controller is, but can also look up it's controller if none specified.
| controllerFactory
    controllerFactory ()
Hook for subclasses to customize the controller that is associated with the model associated with this view. Default behavior: Look up a component that implements IController for the self.model instance.
| modelChanged
    modelChanged ( changed )
Dispatch changed messages to any update_* methods which may have been defined, then pass the update notification on to the controller.
| setController
    setController ( controller )
Set the controller that this view is related to.

Table of Contents

This document was automatically generated on Sun Jul 14 19:53:11 2002 by HappyDoc version 2.0