]> granicus.if.org Git - python/commitdiff
Give default _elemdict and _propdict attributes to OSA classes, so
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 18 Jun 2003 14:19:08 +0000 (14:19 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 18 Jun 2003 14:19:08 +0000 (14:19 +0000)
we don't get infinite recursion for suites that don't have an application
class.

Also got rid of some tabs.

Lib/plat-mac/aetools.py

index 92d6ec90e40aa41a2319ab88bafc11dd1d1b3ad9..347b52379653efd75e0c0f9a3b0b5c97b58442c0 100644 (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,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]