Give default _elemdict and _propdict attributes to OSA classes, so

we don't get infinite recursion for suites that don't have an application
class.

Also got rid of some tabs.
This commit is contained in:
Jack Jansen 2003-06-18 14:19:08 +00:00
parent 2cf9b956f7
commit 39c5d666c9
1 changed files with 6 additions and 4 deletions

View File

@ -143,7 +143,9 @@ def decodeerror(arguments):
class TalkTo:
"""An AE connection to an application"""
_signature = None # Can be overridden by subclasses
_moduleName = None # Can be overridden by subclasses
_moduleName = None # Can be overridden by subclasses
_elemdict = {} # Can be overridden by subclasses
_propdict = {} # Can be overridden by subclasses
__eventloop_initialized = 0
def __ensure_WMAvailable(klass):
@ -284,8 +286,8 @@ class TalkTo:
set = _set
# Magic glue to allow suite-generated classes to function somewhat
# like the "application" class in OSA.
# Magic glue to allow suite-generated classes to function somewhat
# like the "application" class in OSA.
def __getattr__(self, name):
if self._elemdict.has_key(name):