[Python-checkins] CVS: python/dist/src/Mac/Modules/app appsupport.py,1.13,1.14

Jack Jansen jackjansen@users.sourceforge.net
Sun, 24 Mar 2002 15:01:57 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/app
In directory usw-pr-cvs1:/tmp/cvs-serv20713/Python/Mac/Modules/app

Modified Files:
	appsupport.py 
Log Message:
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.

Should finally fix 531398. 2.2.1 candidate.

Also blacklisted some constants with definitions that were not Python-compatible.

Index: appsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/app/appsupport.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** appsupport.py	6 Jan 2002 23:03:39 -0000	1.13
--- appsupport.py	24 Mar 2002 23:01:55 -0000	1.14
***************
*** 119,128 ****
  
  ThemeDrawingState = OpaqueByValueType("ThemeDrawingState", "ThemeDrawingStateObj")
! Method = MethodGenerator
  
  
  # Create the generator classes used to populate the lists
! Function = OSErrFunctionGenerator
! ##Method = OSErrMethodGenerator
  
  # Create and populate the lists
--- 119,128 ----
  
  ThemeDrawingState = OpaqueByValueType("ThemeDrawingState", "ThemeDrawingStateObj")
! Method = WeakLinkMethodGenerator
  
  
  # Create the generator classes used to populate the lists
! Function = OSErrWeakLinkFunctionGenerator
! ##Method = OSErrWeakLinkMethodGenerator
  
  # Create and populate the lists