1
Title: Trigger Extension for datasources
8
A GDatasource object as defined in GDatasource.py is providing the following
9
functions in its trigger namespace:
11
- createResultSet(conditions={}, readOnly=0) load a new resultset into the
14
- simpleQuery(maskDict) load a new resultset into the
15
datasource and return that
16
result as an dictionary object
19
The following functions are provided in the global trigger namespace too:
21
- delete() delete the current record
23
- call(name,params) ***ALPHA*** call a function "name" on the
24
current record. This function
25
just works in connection with
26
appserver as an db backend.
31
1. get the name of a state out of a zip code
34
statezip_datasource.simpleQuery({"zip":"2342"})