[Python-checkins] python/dist/src/Lib/plat-mac aetools.py,1.8,1.9

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Wed, 18 Jun 2003 07:19:10 -0700


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv314

Modified Files:
	aetools.py 
Log Message:
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.


Index: aetools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/aetools.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** aetools.py	13 Jun 2003 14:27:35 -0000	1.8
--- aetools.py	18 Jun 2003 14:19:08 -0000	1.9
***************
*** 144,148 ****
      """An AE connection to an application"""
      _signature = None   # Can be overridden by subclasses
!     _moduleName = None # Can be overridden by subclasses
      
      __eventloop_initialized = 0
--- 144,150 ----
      """An AE connection to an application"""
      _signature = 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
***************
*** 285,291 ****
      set = _set
  
! 	# 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):
--- 287,293 ----
      set = _set
  
!     # 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):