summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/aetools.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-06-18 14:19:08 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-06-18 14:19:08 (GMT)
commit39c5d666c94f796e4cf0beadb75f5f248f19ee7c (patch)
tree75d85b7423b5bce47f01daddbad45bb66299e246 /Lib/plat-mac/aetools.py
parent2cf9b956f70fe7e8d14bc0a22e4451600cb40658 (diff)
downloadcpython-39c5d666c94f796e4cf0beadb75f5f248f19ee7c.zip
cpython-39c5d666c94f796e4cf0beadb75f5f248f19ee7c.tar.gz
cpython-39c5d666c94f796e4cf0beadb75f5f248f19ee7c.tar.bz2
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.
Diffstat (limited to 'Lib/plat-mac/aetools.py')
-rw-r--r--Lib/plat-mac/aetools.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/plat-mac/aetools.py b/Lib/plat-mac/aetools.py
index 92d6ec9..347b523 100644
--- a/Lib/plat-mac/aetools.py
+++ b/Lib/plat-mac/aetools.py
@@ -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]