No documentation available. More...
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) |
No documentation available.
def dialog.controller.Controller.__init__ | ( | args | ) |
__init__(args)
Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.
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 | ) |
__do_load__(args)
Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.
def dialog.controller.Controller.__do_store__ | ( | args | ) |
__do_store__(args)
Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.
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 | ) |
FromType(args)
Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.
def dialog.controller.Controller.Load | ( | args | ) |
Load(args)
Reimplemented in dialog.table.RowManagerController, dialog.controller.PropertyController, and dialog.controller.DictController.
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.