| Home | Trees | Index | Help |
|---|
GTriggerCore--+ |object--+ | | |ParserObj--+ |GObj--+ | GDataSource
GFDataSourceClass that handles DataSources. This is a subclass of GObj, which means this class can be created from XML markup and stored in an Object tree (e.g., a Forms tree).
Each GDataSource object maintains its own event controller and issues the following events:| Method Summary | |
|---|---|
__init__(self,
parent,
type)
| |
Create an empty result set. | |
Execute a query on the backend and create a result set. | |
Returns the static condition for this datasource, as set in setCondition or as defined in XML. | |
Return the master datasource of this datasource. | |
Return True if this datasource is a detail of another datasource. | |
Post all changes to the backend. | |
Reference a bound field (i.e. | |
Reference several bound fields at once (i.e. | |
Reference an unbound field. | |
Requery data from the backend. | |
Set the static condition for this datasource. | |
Set the connection manager ( GConnections.GConnections
instance for this datasource. | |
| Inherited from GObj | |
| |
| |
Dumps an XML representation of the object | |
This is a convenience function for applications NOT using GParser to load an object tree. | |
A convenience function for applications NOT using GParser to load an object tree. | |
| string |
Returns the xml tag to be used to represent the object. |
Return a python iterator of child objects. | |
maxInits returns the maximum size of all the _inits list from this object or it's children | |
Starts GNUe's phased initialization system from this object down. | |
A recusive function to print an indented text representation of the GObj tree from this object down. | |
Function that recursively walks down through a tree of ParserObj instances and applies a function
to them. | |
| Inherited from GTriggerCore | |
| |
Construct a namespace object tree from an XML ( definitions.GObjects.GObj) object tree. | |
Return the namespace object that mirrors this object in the action/trigger namespace. | |
| Inherited from ParserObj | |
Set the action attribute of a given object to the specified action. | |
Get the contents of this object. | |
Return a compareable and identifying id of an object within a tree. | |
Set attributes loaded by GParser. | |
Add an object to the list of children | |
Assign all attributes from a given object to this one. | |
Build an object tree representing the difference between two object trees. | |
Return a XML representation of the object. | |
Moves downward though the children of an object till it finds the child with the specified name. | |
Moves downward through the children of an object till it finds the child of the specified type. | |
Find all children of a specific type. | |
Moves upward though the parents of an object till it finds the parent of the specified type. | |
Returns the content of any GContent objects that are children of this object. | |
Return a useful description of the object. | |
| any |
Returns the immediate parent of an object instance in a GObj tree. |
Merge another object tree into this tree. | |
Set the immediate parent of an object instance in a GObj tree | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Method Details |
|---|
__init__(self,
parent=None,
type='GDataSource')
|
createEmptyResultSet(self, masterRecord=None)Create an empty result set. The result set generated will become the active result set of this datasource.
|
createResultSet(self, conditions={}, readOnly=False, masterRecord=None)Execute a query on the backend and create a result set. The result set generated by the query will become the active result set of this datasource.
|
getCondition(self)Returns the static condition for this datasource, as set in setCondition or as defined in XML. |
getMaster(self)Return the master datasource of this datasource. |
hasMaster(self)Return True if this datasource is a detail of another datasource. |
postAll(self)Post all changes to the backend. This function posts the top level master datasource of this datasource and all of that datasource's children. After calling postAll,requeryAll must be called.
|
referenceField(self, field, defaultValue=None)Reference a bound field (i.e. bind it to a database column with the same name).
|
referenceFields(self, fields)Reference several bound fields at once (i.e. bind them to database columns with the same names).
|
referenceUnboundField(self, field, defaultValue=None)Reference an unbound field. Unbound fields are not bound to a database column. Values stored in unbound fields are not persistent. It is only necessary to explicitly reference an unbound field if a default value should be set.
|
requeryAll(self, commit)Requery data from the backend. This must be called after
|
setCondition(self, mycondition)Set the static condition for this datasource. This condition is used in any query, additionally to the condition given increateResultSet.
|
setConnectionManager(self, connectionManager)Set the connection manager (GConnections.GConnections
instance for this datasource.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Aug 27 23:05:10 2008 | http://epydoc.sf.net |