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:
parent
2cf9b956f7
commit
39c5d666c9
|
@ -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,9 +286,9 @@ 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):
|
||||
cls = self._elemdict[name]
|
||||
|
|
Loading…
Reference in New Issue