Module gnue.common.datasources.GDataSource
Classes for the datasource object tree.
| Function Summary |
| |
DataSourceWrapper(connections,
fields,
attributes,
init,
sql)
Wrapper function to use datasources outside an XML tree. |
| |
getAppserverResource(url,
paramDict,
connections)
Load an appserver resource. |
| |
getXMLelements(updates)
|
DataSourceWrapper(connections=None,
fields=[],
attributes={},
init=True,
sql='')
Wrapper function to use datasources outside an XML tree.
-
- Parameters:
connections -
Connection manager (GConnections.GConnections
instance).
fields -
List of field names to bind to the database.
attributes -
Dictionary of attributes to set for the datasource (all XML
attributes can be used).
init -
If set to False, does not initialize the datasource
object.
sql -
Optional raw SQL.
|
getAppserverResource(url,
paramDict,
connections)
Load an appserver resource.
Appserver resources are XML definitions that are generated by
appserver.
-
- Parameters:
url -
Resource URL. Must be in format
appserver://<connection>/<resourcetype>/<resourcename>
paramDict -
Parameters to provide when requesting the resource. Valid
parameters depend on the resource type.
connections -
Connection manager that can be used to connect to the
appserver backend.
|
getXMLelements(updates={})
-
|