| Home | Trees | Index | Help |
|---|
GBaseApp--+ |GClientApp--+ | geasGsdGen
| Method Summary | |
|---|---|
__init__(self,
connections)
| |
This is the main function of the gsd generator. | |
This function adds a class to the list of classes respecting all dependencies given by class-references. | |
This function adds a new row to the given row collection using the values from the given record. | |
This function creates a sequence of classnames to be dumped. | |
This function creates a dictionary with sequences of condition-tuples for all classes where every tuple represents an 'equal'-condition. | |
Create a TableData object tree with all data of the given class. | |
This function exports all records (according to an existing filter) of a class which has a fishhook. | |
This function iterates over the command line arguments, picks out all elements with an equal sign and removes them from the arguments sequence Such elements are of the form 'classname[.property]=value' where the property part is optional. | |
This function creates a unicode string to be used in a <value>-tag of a GSD file. | |
This function creates a resultset for the given class and iterates over all records. | |
This function creates a new datasource for a table using a list of fields. | |
This function returns a sequence of all keys without any dependencies. | |
This function iterates over all available filters and creates a dictionary with all filter-ids and their values. | |
| Inherited from GClientApp | |
| |
| |
| |
| Inherited from GBaseApp | |
Create a new command option and add it to the options sequence. | |
Return a generator for iterating a given reference cycle. | |
Build 'help text' for all options of the given category. | |
Debug Python's garbage collection. | |
Display all configuration settings and their default values and quit the program. | |
Run the self documentation. | |
Display the version information and quit the program. | |
This function catches an exception and evaluates it using getException(). | |
Find a reference cycle starting from a given object(current) and ending with a given object(search). | |
Convert a sequence of parameters (i.e. | |
Display a startup error and exit gracefully. | |
Print help information for this application and quit the program. | |
Print connection/database-related help information and quit the program. | |
Print help information for this application and quit the program. | |
Print the help footer including the address for bug reports. | |
Print version information and the usage header | |
Display version information for this application | |
Run the self-documentation for an application. | |
Run the application in the python debugger. | |
Run the application through the python profiler and print some statistics afterwards. | |
This function shows an exception specified by the given parameters. | |
| Class Variable Summary | |
|---|---|
str |
COMMAND = 'gnue-gsdgen'
|
str |
NAME = 'geasGsdGen'
|
str |
SUMMARY = 'A tool to dump data from a database into a GN...
|
str |
USAGE = '[options] [classname] [classname] [...]'
|
str |
VERSION = '0.5.2+svn.9887'
|
| Inherited from GBaseApp | |
list |
ARGUMENTS = []
|
str |
AUTHOR = 'GNU Enterprise Project'
|
list |
COMMAND_OPTIONS = []
|
str |
CONFIGFILE = 'gnue.conf'
|
NoneType |
connections = None |
str |
EMAIL = 'info@gnue.org'
|
dict |
OPTIONS = {}
|
str |
REPORT_BUGS_TO = 'Please report any bugs to info@gnue.or...
|
int |
USE_CONNECTIONS = 1 |
int |
USE_DATABASE_OPTIONS = 0 |
int |
USE_RPC_OPTIONS = 0 |
| Method Details |
|---|
__init__(self,
connections=None)
|
run(self)This is the main function of the gsd generator. If parses the options given, creates the GSD object tree and dumps it to the output file.
|
__addClass(self, className)This function adds a class to the list of classes respecting all dependencies given by class-references. |
__addRow(self, record, classDef, fields, rows)This function adds a new row to the given row collection using the values from the given record.
|
__createClassList(self, args)This function creates a sequence of classnames to be dumped. This sequence is in a proper order so no constraint-violations should occur.
|
__createConditionDicts(self)This function creates a dictionary with sequences of condition-tuples for all classes where every tuple represents an 'equal'-condition. To get the final condition per class all tuples will be AND-connected. Such a tuple has the following form: (source-relation, souce-item, destination-relation, destination-item) If destination-relation is None, destination-item is a field-value otherwise it's a field-name. Examples:
|
__exportClass(self, className)Create a TableData object tree with all data of the given class.
|
__fishDataDump(self, classDef, fieldlist, rows)This function exports all records (according to an existing filter) of a class which has a fishhook. All records are exported in an order which allows reimporting without reference-violation.
|
__getFilterParams(self)This function iterates over the command line arguments, picks out all elements with an equal sign and removes them from the arguments sequence Such elements are of the form 'classname[.property]=value' where the property part is optional. From all these elements a dictionary is built where the 'classname'-part acts as key and the value is another dictionary with 'property'-part as key an 'value' as it's value. If no 'property' is given 'gnue_id' will be used.
|
__nativeToString(self, native, datatype)This function creates a unicode string to be used in a <value>-tag of a GSD file. The native python object will be treated and theirfore converted as 'datatype'. |
__normalDataDump(self, classDef, fieldlist, rows)This function creates a resultset for the given class and iterates over all records. All fields with a value other than <None> will be added to the rows collection.
|
__openSource(self, classdef, fieldList)This function creates a new datasource for a table using a list of fields.
|
__shrinkList(self, dataDict, circularError, *args)This function returns a sequence of all keys without any dependencies. If no such items were found but there are still entries in the dictionary a CircularReferenceError will be raised.
|
__verifyFilters(self)This function iterates over all available filters and creates a dictionary with all filter-ids and their values.
|
| Class Variable Details |
|---|
COMMAND
|
NAME
|
SUMMARY
|
USAGE
|
VERSION
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 8 23:01:32 2009 | http://epydoc.sf.net |