Package AccessGrid :: Module Toolkit :: Class AppBase
[show private | hide private]
[frames | no frames]

Class AppBase

Known Subclasses:
Application, Service

The application object is one of the top level objects used to build new parts of the AGTk. The application object is required to be a singleton in any process.
Method Summary
  __init__(self)
The application constructor that enforces the singleton pattern.
  AddCmdLineOption(self, option)
  FindConfigFile(self, configFile)
Locate given file in configuration directories: first check user dir, then system dir; return None if not found
  GetCertificateManager(self)
  GetCertMgrUI(self)
  GetConfigFilename(self)
  GetDebugLevel(self)
  GetDefaultSubject(self)
  GetFileLogLevels(self)
Return the loggingLevels object for the current log file.
  GetGlobusConfig(self)
  GetHostname(self)
  GetLog(self)
Return a toolkit wide log.
  GetLogFilename(self)
  GetLogLevels(self)
Return the primary loggingLevels object.
  GetOption(self, arg)
  GetStreamLogLevels(self)
Return the loggingLevels object for the current output stream.
  GetToolkitConfig(self)
  GetUserConfig(self)
  Initialize(self, name, args)
This method sets up everything for reasonable execution.
  instance()
The interface for getting the one true instance of this object. (Static method)
  ProcessArgs(self, args)
Process toolkit wide standard arguments.
  __CheckForInvalidClock(self)
Check to see if the local clock is out of synch, a common reason for a failed authentication.

Class Variable Summary
NoneType theInstance = None                                                                  

Instance Method Details

__init__(self)
(Constructor)

The application constructor that enforces the singleton pattern.

FindConfigFile(self, configFile)

Locate given file in configuration directories: first check user dir, then system dir; return None if not found

GetFileLogLevels(self)

Return the loggingLevels object for the current log file.

GetLog(self)

Return a toolkit wide log.

GetLogLevels(self)

Return the primary loggingLevels object.
  in debug mode: self.streamLoggerLevels
  otherwise:     self.fhLoggerLevels

Should be called after initialization.
Levels can be set like this:
    ll = GetFileLevels()
    ll.SetLevel(Log.DEBUG)
and tuned like this:
    ll.SetLevel(Log.WARN, Log.Hosting)

GetStreamLogLevels(self)

Return the loggingLevels object for the current output stream. Returns None when not in debug mode.

Initialize(self, name=None, args=None)

This method sets up everything for reasonable execution. At the first sign of any problems it raises exceptions and exits.

ProcessArgs(self, args=None)

Process toolkit wide standard arguments. Then return the modified argv so the app can choose to parse more if it requires that.

__CheckForInvalidClock(self)

Check to see if the local clock is out of synch, a common reason for a failed authentication.

This routine loggs a warningString.

Static Method Details

instance()

The interface for getting the one true instance of this object.

Class Variable Details

theInstance

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Thu Apr 14 16:39:30 2005 http://epydoc.sf.net