| |
- Action(Propertied)
-
- GridViewAction
-
- DBEditDescriptors
- DefineDBSpecifier
- RefreshAction
-
- DBRefreshAction
class DBEditDescriptors(GridViewAction) |
|
Pop up a window for editing the descriptor-set of the adapter
Basically should let you specify other editing/viewing
controls while live. |
|
- Method resolution order:
- DBEditDescriptors
- GridViewAction
- Action
- Propertied
- object
Methods inherited from GridViewAction:
- getAdapter(self)
- Get the grid's current adapter
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 0x0289CF70>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class DBRefreshAction(RefreshAction) |
|
Refresh the grid for DBTables, requerying dbase |
|
- Method resolution order:
- DBRefreshAction
- RefreshAction
- GridViewAction
- Action
- Propertied
- object
Methods inherited from RefreshAction:
- action(self, context, *arguments, **namedarguments)
Methods inherited from GridViewAction:
- getAdapter(self)
- Get the grid's current adapter
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 0x0289C8B0>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class DefineDBSpecifier(GridViewAction) |
|
Allow user to choose the database connection interactively
This will likely be a wizard-like process, with the
first page searching for appropriate drivers, then
the second page letting you fill in the rest of the
data.
DBDriver should provide meta-data for this process. |
|
- Method resolution order:
- DefineDBSpecifier
- GridViewAction
- Action
- Propertied
- object
Methods inherited from GridViewAction:
- getAdapter(self)
- Get the grid's current adapter
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 0x0289C8F0>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class GridViewAction(Action) |
|
Base action class for all GridView actions |
|
- Method resolution order:
- GridViewAction
- Action
- Propertied
- object
Methods defined here:
- getAdapter(self)
- Get the grid's current adapter
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 0x0289C0D0>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
|
class RefreshAction(GridViewAction) |
|
Refresh the grid's current view |
|
- Method resolution order:
- RefreshAction
- GridViewAction
- Action
- Propertied
- object
Methods defined here:
- action(self, context, *arguments, **namedarguments)
Methods inherited from GridViewAction:
- getAdapter(self)
- Get the grid's current adapter
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 0x0289C770>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Propertied' objects>
- list of weak references to the object (if defined)
| |