| Home | Trees | Index | Help |
|---|
GClientApp,
GServerAppThe base class of the various GNUe application classes.
GBaseApp Provides the following features| Method Summary | |
|---|---|
| |
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 program. | |
Run the self-documentation for an application. | |
| Class Variable Summary | |
|---|---|
list |
ARGUMENTS = []
|
str |
AUTHOR = 'GNU Enterprise Project'
|
str |
COMMAND = 'app'
|
list |
COMMAND_OPTIONS = []
|
str |
CONFIGFILE = 'gnue.conf'
|
NoneType |
connections = None |
str |
EMAIL = 'info@gnue.org'
|
str |
NAME = 'GNUe Application'
|
dict |
OPTIONS = {}
|
str |
REPORT_BUGS_TO = 'Please report any bugs to info@gnue.or...
|
str |
SUMMARY = 'A brief summary of the program goes here.'
|
str |
USAGE = '[options]'
|
int |
USE_CONNECTIONS = 1 |
int |
USE_DATABASE_OPTIONS = 0 |
int |
USE_RPC_OPTIONS = 0 |
str |
VERSION = '0.0.0'
|
| Method Details |
|---|
__init__(self,
connections=None,
application='common',
defaults=None)
|
addCommandOption(self, *args, **parms)Create a new command option and add it to the options sequence.
|
analyzeCycle(self, cycle)Return a generator for iterating a given reference cycle.
|
buildHelpOptions(self, category=None)Build 'help text' for all options of the given category. If no category is given all options except the 'dev' options will be included.
|
debugGarbageCollection(self, signal, frame)Debug Python's garbage collection.
|
doHelpConfig(self)Display all configuration settings and their default values and quit the program. |
doSelfDoc(self)Run the self documentation. If a documentation file is specified the contents will be written to that file, otherwise it will be printed to stdout. |
doVersion(self)Display the version information and quit the program. |
excepthook(self, etype, value, traceback)This function catches an exception and evaluates it using getException(). The exception-tuple is then passed to showException(), which might get overriden by a descendant. |
findCycle(self, search, current, last, path, seen)Find a reference cycle starting from a given object(current) and ending with a given object(search). The result is either None if no such cycle exists, or a sequence of tuples (repr, propertyname) describing the reference cycle. 'repr' is either a string representation of an object holding the reference or None. 'propertyname' could be one of the following:
|
getCommandLineParameters(self, paramList)Convert a sequence of parameters (i.e. '--foo=bar') into a parameter dictionary, where the paramter ('--foo') is the key and it's argument ('bar') is the value.
|
handleStartupError(self, msg)Display a startup error and exit gracefully. This function is depreciated. Descendants should use the concpet of exceptions instead, which will be handled by the exception hook installed by this class. |
printHelp(self)Print help information for this application and quit the program. This includes the version, the usage, the application's summary and all available command options (without the 'developer' options). |
printHelpConn(self)Print connection/database-related help information and quit the program. |
printHelpDev(self)Print help information for this application and quit the program. This includes the version, usage and all available developer's command options. |
printHelpFooter(self)Print the help footer including the address for bug reports. |
printHelpHeader(self)Print version information and the usage header |
printVersion(self)Display version information for this application |
run(self)Run the program. This function will be overriden by a descendant. |
selfdoc(self, command, handle, format=None, options={})Run the self-documentation for an application. Currently only the command 'manpage' is supported.
|
| Class Variable Details |
|---|
ARGUMENTS
|
AUTHOR
|
COMMAND
|
COMMAND_OPTIONS
|
CONFIGFILE
|
connections
|
|
NAME
|
OPTIONS
|
REPORT_BUGS_TO
|
SUMMARY
|
USAGE
|
USE_CONNECTIONS
|
USE_DATABASE_OPTIONS
|
USE_RPC_OPTIONS
|
VERSION
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Sep 6 23:01:31 2008 | http://epydoc.sf.net |