SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
dialog.controller.Controller Class Reference

No documentation available. More...

Inheritance diagram for dialog.controller.Controller:
dialog.controller.DictController dialog.controller.PropertyController dialog.table.RowManagerController

Methods defined here:

def EnsureType
def FromType
def Load
def RegisterHandlers
def Store
def __do_load__
def __do_store__
def __init__

Data descriptors defined here:

def __dict__
 dictionary for instance variables (if defined)
def __weakref__
 list of weak references to the object (if defined)

Detailed Description

No documentation available.

Constructor & Destructor Documentation

def dialog.controller.Controller.__init__ (   args)

Member Function Documentation

def dialog.controller.Controller.__dict__ (   args)

dictionary for instance variables (if defined)

Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.

def dialog.controller.Controller.__do_load__ (   args)
def dialog.controller.Controller.__do_store__ (   args)
def dialog.controller.Controller.__weakref__ (   args)

list of weak references to the object (if defined)

Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.

def dialog.controller.Controller.EnsureType (   args)
 This routine makes sure that you're saving the same type that
 was already in the model.

Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.

def dialog.controller.Controller.FromType (   args)
def dialog.controller.Controller.Load (   args)
def dialog.controller.Controller.RegisterHandlers (   args)
 Register methods to convert types from the model types to the
 display types, and from the display types to the model types
 for a certain name.
 
 This is essentially a convenience method, you could do this
 by overriding load/store; but if this is all of the behaviour
 you wish to change then this is much much easier.
 
 Generally you can do from_model as "lambda val:val".  Most of
 the time you'll be interested in from_display.
 
 By default, from_display, will be a method which uses
 the type you have stored in the model to start with.  This
 generally works fine.  However, with lists of values this
 won't work.

Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.

def dialog.controller.Controller.Store (   args)
 value is a value.Value type object.
 You'll likely want "value.name" which is the field name.
 "value.screenonly" should indicate that you don't load or
 store the value

Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.