| |
- Action(Propertied)
-
- BaseAction
-
- ExitAction
- NewAction
- OpenAction
- SaveAction
class BaseAction(Action) |
|
Base action class for the demonstration app |
|
- Method resolution order:
- BaseAction
- Action
- Propertied
- object
Methods inherited from Action:
- __call__(self, context=None, *arguments, **namedarguments)
- Call (perform) the action with exception handling
Calls pre, then action, then either success or exception, then post
- action(self, context=None, *arguments, **namedarguments)
- The action to perform
- exception(self, err, context=None, *arguments, **namedarguments)
- Handle an exception during the action
- post(self, context, *arguments, **namedarguments)
- Called after the action is performed, regardless of outcome
- pre(self, context, *arguments, **namedarguments)
- Called before the action is performed
- success(self, result=None, context=None, *arguments, **namedarguments)
- Handle a successful completion
Data and other attributes inherited from Action:
- description = <StringProperty 'description'>
- Description for use in status bars
- name = <StringProperty 'name'>
- Name which identifies this action
- specifier = <StringProperty 'specifier'>
- The application-wide specifier for this action
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x02899630>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class ExitAction(BaseAction) |
| |
- Method resolution order:
- ExitAction
- BaseAction
- Action
- Propertied
- object
Methods defined here:
- action(self, context, *arguments, **namedarguments)
- success(self, *arguments, **namedarguments)
Methods inherited from Action:
- __call__(self, context=None, *arguments, **namedarguments)
- Call (perform) the action with exception handling
Calls pre, then action, then either success or exception, then post
- exception(self, err, context=None, *arguments, **namedarguments)
- Handle an exception during the action
- post(self, context, *arguments, **namedarguments)
- Called after the action is performed, regardless of outcome
- pre(self, context, *arguments, **namedarguments)
- Called before the action is performed
Data and other attributes inherited from Action:
- description = <StringProperty 'description'>
- Description for use in status bars
- name = <StringProperty 'name'>
- Name which identifies this action
- specifier = <StringProperty 'specifier'>
- The application-wide specifier for this action
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x02899890>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class NewAction(BaseAction) |
|
Create a new world to edit |
|
- Method resolution order:
- NewAction
- BaseAction
- Action
- Propertied
- object
Methods defined here:
- action(self, context, *arguments, **namedarguments)
Methods inherited from Action:
- __call__(self, context=None, *arguments, **namedarguments)
- Call (perform) the action with exception handling
Calls pre, then action, then either success or exception, then post
- exception(self, err, context=None, *arguments, **namedarguments)
- Handle an exception during the action
- post(self, context, *arguments, **namedarguments)
- Called after the action is performed, regardless of outcome
- pre(self, context, *arguments, **namedarguments)
- Called before the action is performed
- success(self, result=None, context=None, *arguments, **namedarguments)
- Handle a successful completion
Data and other attributes inherited from Action:
- description = <StringProperty 'description'>
- Description for use in status bars
- name = <StringProperty 'name'>
- Name which identifies this action
- specifier = <StringProperty 'specifier'>
- The application-wide specifier for this action
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x027A8C50>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class OpenAction(BaseAction) |
|
Open world from file (replacing current) |
|
- Method resolution order:
- OpenAction
- BaseAction
- Action
- Propertied
- object
Methods defined here:
- action(self, context, *arguments, **namedarguments)
Methods inherited from Action:
- __call__(self, context=None, *arguments, **namedarguments)
- Call (perform) the action with exception handling
Calls pre, then action, then either success or exception, then post
- exception(self, err, context=None, *arguments, **namedarguments)
- Handle an exception during the action
- post(self, context, *arguments, **namedarguments)
- Called after the action is performed, regardless of outcome
- pre(self, context, *arguments, **namedarguments)
- Called before the action is performed
- success(self, result=None, context=None, *arguments, **namedarguments)
- Handle a successful completion
Data and other attributes inherited from Action:
- description = <StringProperty 'description'>
- Description for use in status bars
- name = <StringProperty 'name'>
- Name which identifies this action
- specifier = <StringProperty 'specifier'>
- The application-wide specifier for this action
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x01BA0EF0>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class SaveAction(BaseAction) |
|
Save the entire world to file |
|
- Method resolution order:
- SaveAction
- BaseAction
- Action
- Propertied
- object
Methods defined here:
- action(self, context, *arguments, **namedarguments)
Methods inherited from Action:
- __call__(self, context=None, *arguments, **namedarguments)
- Call (perform) the action with exception handling
Calls pre, then action, then either success or exception, then post
- exception(self, err, context=None, *arguments, **namedarguments)
- Handle an exception during the action
- post(self, context, *arguments, **namedarguments)
- Called after the action is performed, regardless of outcome
- pre(self, context, *arguments, **namedarguments)
- Called before the action is performed
- success(self, result=None, context=None, *arguments, **namedarguments)
- Handle a successful completion
Data and other attributes inherited from Action:
- description = <StringProperty 'description'>
- Description for use in status bars
- name = <StringProperty 'name'>
- Name which identifies this action
- specifier = <StringProperty 'specifier'>
- The application-wide specifier for this action
Methods inherited from Propertied:
- __init__(self, *arguments, **namedarguments)
- Propertied object initialisation, allows passing in initial values for properties by name
- __str__(self)
- Get a friendly representation of the object
- clone(self, **newValues)
- Clone this object, with optional new property values
This method calls the __init__ method of your class with
the current property values of your class. Providing newValues
(a dictionary) overrides property settings with new values.
- getCloneProperties(self)
- Get properties dictionary (key:value) for use in cloning of the instance
By default you get getProperties()' values, with an
attempt made to use the property's name, then the property's
direct "__get__" method.
- toString(self, indentation='', alreadyDone=None, indentString=' ')
- Get a nicely formatted representation of this object
This version assumes that getProperties returns
the list of properties which should be presented,
it recursively calls it's children with greater
indents to get their representations.
indentation -- current string indentation level
alreadyDone -- set of object ids which are already finished
XXX Needs a far better API, likely a stand-alone class
without the automatic inheritance problems here :(
Class methods inherited from Propertied:
- getProperties(cls) from type
- Get the BasicProperty properties for a particular object's class
Data and other attributes inherited from Propertied:
- __dict__ = <dictproxy object at 0x027A8C50>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
| |