[Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior CodeWarrior_suite.py,1.6,1.7 Metrowerks_Shell_Suite.py,1.6,1.7 Required.py,1.3,1.4 Standard_Suite.py,1.5,1.6 __init__.py,1.7,1.8

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sat, 12 Apr 2003 15:27:39 -0700


Update of /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior
In directory sc8-pr-cvs1:/tmp/cvs-serv30892/lib-scriptpackages/CodeWarrior

Modified Files:
	CodeWarrior_suite.py Metrowerks_Shell_Suite.py Required.py 
	Standard_Suite.py __init__.py 
Log Message:
Oops, _propdeclarations and friends are needed: gensuitemodule uses them
to lookup properties declared in base classes. Looking at it I'm not sure
what the official scope if the property codes is, maybe it is only the
(OSA) class in which they are used. But giving them global scope hasn't been
a problem so far.

Regenerated the standard suites, which are now also space-indented.


Index: CodeWarrior_suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** CodeWarrior_suite.py	1 Apr 2003 22:04:25 -0000	1.6
--- CodeWarrior_suite.py	12 Apr 2003 22:27:05 -0000	1.7
***************
*** 13,319 ****
  class CodeWarrior_suite_Events:
  
! 	_argmap_add = {
! 		'new' : 'kocl',
! 		'with_data' : 'data',
! 		'to_targets' : 'TTGT',
! 		'to_group' : 'TGRP',
! 	}
  
! 	def add(self, _object, _attributes={}, **_arguments):
[...1278 lines suppressed...]
!     'PRER' : _Prop_prerequisites,
!     'Path' : _Prop_path,
!     'PrjD' : _Prop_project_document,
!     'TrgT' : _Prop_target,
!     'WEAK' : _Prop_weak_link,
!     'c@#^' : _Prop_inherits,
!     'imod' : _Prop_modified,
!     'pnam' : _Prop_name,
!     'sele' : _Prop_selection,
! }
! 
! _compdeclarations = {
! }
! 
! _enumdeclarations = {
!     'DKND' : _Enum_DKND,
!     'FTYP' : _Enum_FTYP,
!     'Inte' : _Enum_Inte,
!     'PERM' : _Enum_PERM,
  }

Index: Metrowerks_Shell_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Metrowerks_Shell_Suite.py	1 Apr 2003 22:04:26 -0000	1.6
--- Metrowerks_Shell_Suite.py	12 Apr 2003 22:27:05 -0000	1.7
***************
*** 13,944 ****
  class Metrowerks_Shell_Suite_Events:
  
! 	_argmap_Add_Files = {
! 		'To_Segment' : 'Segm',
! 	}
  
! 	def Add_Files(self, _object, _attributes={}, **_arguments):
! 		"""Add Files: Add the specified file(s) to the current project
! 		Required argument: List of files to add
! 		Keyword argument To_Segment: Segment number into which to add the file(s)
[...4518 lines suppressed...]
! }
! 
! _enumdeclarations = {
!     'Acce' : _Enum_Acce,
!     'BXbr' : _Enum_BXbr,
!     'DbSA' : _Enum_DbSA,
!     'DgBL' : _Enum_DgBL,
!     'ErrT' : _Enum_ErrT,
!     'Inte' : _Enum_Inte,
!     'Lang' : _Enum_Lang,
!     'PPrm' : _Enum_PPrm,
!     'PXdg' : _Enum_PXdg,
!     'PthF' : _Enum_PthF,
!     'RefP' : _Enum_RefP,
!     'STKd' : _Enum_STKd,
!     'SrcT' : _Enum_SrcT,
!     'TmpB' : _Enum_TmpB,
!     'TxtF' : _Enum_TxtF,
!     'savo' : _Enum_savo,
  }

Index: Required.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Required.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Required.py	1 Apr 2003 22:04:27 -0000	1.3
--- Required.py	12 Apr 2003 22:27:06 -0000	1.4
***************
*** 14,46 ****
  class Required_Events(Required_Suite_Events):
  
! 	_argmap_open = {
! 		'converting' : 'Conv',
! 	}
  
! 	def open(self, _object, _attributes={}, **_arguments):
! 		"""open: Open the specified object(s)
! 		Required argument: list of objects to open
! 		Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask).
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		"""
! 		_code = 'aevt'
! 		_subcode = 'odoc'
  
! 		aetools.keysubst(_arguments, self._argmap_open)
! 		_arguments['----'] = _object
  
! 		aetools.enumsubst(_arguments, 'Conv', _Enum_Conv)
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
  _Enum_Conv = {
! 	'yes' : 'yes ',	# Convert the project if necessary on open
! 	'no' : 'no  ',	# Do not convert the project if needed on open
  }
  
--- 14,46 ----
  class Required_Events(Required_Suite_Events):
  
!     _argmap_open = {
!         'converting' : 'Conv',
!     }
  
!     def open(self, _object, _attributes={}, **_arguments):
!         """open: Open the specified object(s)
!         Required argument: list of objects to open
!         Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask).
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         """
!         _code = 'aevt'
!         _subcode = 'odoc'
  
!         aetools.keysubst(_arguments, self._argmap_open)
!         _arguments['----'] = _object
  
!         aetools.enumsubst(_arguments, 'Conv', _Enum_Conv)
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
  _Enum_Conv = {
!     'yes' : 'yes ',	# Convert the project if necessary on open
!     'no' : 'no  ',	# Do not convert the project if needed on open
  }
  
***************
*** 50,52 ****
--- 50,62 ----
  #
  _classdeclarations = {
+ }
+ 
+ _propdeclarations = {
+ }
+ 
+ _compdeclarations = {
+ }
+ 
+ _enumdeclarations = {
+     'Conv' : _Enum_Conv,
  }

Index: Standard_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior/Standard_Suite.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Standard_Suite.py	1 Apr 2003 22:04:28 -0000	1.5
--- Standard_Suite.py	12 Apr 2003 22:27:06 -0000	1.6
***************
*** 14,209 ****
  class Standard_Suite_Events(Standard_Suite_Events):
  
! 	_argmap_close = {
! 		'saving' : 'savo',
! 		'saving_in' : 'kfil',
! 	}
  
! 	def close(self, _object, _attributes={}, **_arguments):
! 		"""close: close an object
! 		Required argument: the object to close
! 		Keyword argument saving: specifies whether or not changes should be saved before closing
! 		Keyword argument saving_in: the file in which to save the object
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		"""
! 		_code = 'core'
! 		_subcode = 'clos'
  
! 		aetools.keysubst(_arguments, self._argmap_close)
! 		_arguments['----'] = _object
  
! 		aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
! 	_argmap_count = {
! 		'each' : 'kocl',
! 	}
  
! 	def count(self, _object, _attributes={}, **_arguments):
! 		"""count: return the number of elements of a particular class within an object
! 		Required argument: the object whose elements are to be counted
! 		Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		Returns: the number of elements
! 		"""
! 		_code = 'core'
! 		_subcode = 'cnte'
  
! 		aetools.keysubst(_arguments, self._argmap_count)
! 		_arguments['----'] = _object
  
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
! 	_argmap_get = {
! 		'as' : 'rtyp',
! 	}
  
! 	def get(self, _object, _attributes={}, **_arguments):
! 		"""get: get the data for an object
! 		Required argument: the object whose data is to be returned
! 		Keyword argument as: the desired types for the data, in order of preference
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		Returns: The data from the object
! 		"""
! 		_code = 'core'
! 		_subcode = 'getd'
  
! 		aetools.keysubst(_arguments, self._argmap_get)
! 		_arguments['----'] = _object
  
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
! 	_argmap_make = {
! 		'new' : 'kocl',
! 		'as' : 'rtyp',
! 		'at' : 'insh',
! 		'with_data' : 'data',
! 		'with_properties' : 'prdt',
! 	}
  
! 	def make(self, _no_object=None, _attributes={}, **_arguments):
! 		"""make: make a new element
! 		Keyword argument new: the class of the new element\xd1keyword 'new' is optional in AppleScript
! 		Keyword argument as: the desired types for the data, in order of preference
! 		Keyword argument at: the location at which to insert the element
! 		Keyword argument with_data: the initial data for the element
! 		Keyword argument with_properties: the initial values for the properties of the element
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		Returns: to the new object(s)
! 		"""
! 		_code = 'core'
! 		_subcode = 'crel'
  
! 		aetools.keysubst(_arguments, self._argmap_make)
! 		if _no_object != None: raise TypeError, 'No direct arg expected'
  
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
! 	def select(self, _object=None, _attributes={}, **_arguments):
! 		"""select: select the specified object
! 		Required argument: the object to select
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		"""
! 		_code = 'misc'
! 		_subcode = 'slct'
  
! 		if _arguments: raise TypeError, 'No optional args expected'
! 		_arguments['----'] = _object
  
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
! 	_argmap_set = {
! 		'to' : 'data',
! 	}
  
! 	def set(self, _object, _attributes={}, **_arguments):
! 		"""set: set an object's data
! 		Required argument: the object to change
! 		Keyword argument to: the new value
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		"""
! 		_code = 'core'
! 		_subcode = 'setd'
  
! 		aetools.keysubst(_arguments, self._argmap_set)
! 		_arguments['----'] = _object
  
  
! 		_reply, _arguments, _attributes = self.send(_code, _subcode,
! 				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
! 			raise aetools.Error, aetools.decodeerror(_arguments)
! 		# XXXX Optionally decode result
! 		if _arguments.has_key('----'):
! 			return _arguments['----']
  
  
  class application(aetools.ComponentItem):
! 	"""application - an application program """
! 	want = 'capp'
  class _Prop_user_interaction(aetools.NProperty):
! 	"""user interaction - user interaction level """
! 	which = 'inte'
! 	want = 'Inte'
  #        element 'cwin' as ['indx', 'name', 'rang']
  #        element 'docu' as ['indx', 'name', 'rang']
  
  class character(aetools.ComponentItem):
! 	"""character - a character """
! 	want = 'cha '
  class _Prop_length(aetools.NProperty):
! 	"""length - length in characters of this object """
! 	which = 'pLen'
! 	want = 'long'
  class _Prop_offset(aetools.NProperty):
! 	"""offset - offset of a text object from the beginning of the document (first char has offset 1) """
! 	which = 'pOff'
! 	want = 'long'
  
  class insertion_point(aetools.ComponentItem):
! 	"""insertion point - An insertion location between two objects """
! 	want = 'cins'
  
  class line(aetools.ComponentItem):
! 	"""line - lines of text """
! 	want = 'clin'
  class _Prop_index(aetools.NProperty):
! 	"""index - index of a line object from the beginning of the document (first line has index 1) """
! 	which = 'pidx'
! 	want = 'long'
  #        element 'cha ' as ['indx', 'rang', 'rele']
  
--- 14,209 ----
  class Standard_Suite_Events(Standard_Suite_Events):
  
!     _argmap_close = {
!         'saving' : 'savo',
!         'saving_in' : 'kfil',
!     }
  
!     def close(self, _object, _attributes={}, **_arguments):
!         """close: close an object
!         Required argument: the object to close
!         Keyword argument saving: specifies whether or not changes should be saved before closing
!         Keyword argument saving_in: the file in which to save the object
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         """
!         _code = 'core'
!         _subcode = 'clos'
  
!         aetools.keysubst(_arguments, self._argmap_close)
!         _arguments['----'] = _object
  
!         aetools.enumsubst(_arguments, 'savo', _Enum_savo)
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
!     _argmap_count = {
!         'each' : 'kocl',
!     }
  
!     def count(self, _object, _attributes={}, **_arguments):
!         """count: return the number of elements of a particular class within an object
!         Required argument: the object whose elements are to be counted
!         Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         Returns: the number of elements
!         """
!         _code = 'core'
!         _subcode = 'cnte'
  
!         aetools.keysubst(_arguments, self._argmap_count)
!         _arguments['----'] = _object
  
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
!     _argmap_get = {
!         'as' : 'rtyp',
!     }
  
!     def get(self, _object, _attributes={}, **_arguments):
!         """get: get the data for an object
!         Required argument: the object whose data is to be returned
!         Keyword argument as: the desired types for the data, in order of preference
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         Returns: The data from the object
!         """
!         _code = 'core'
!         _subcode = 'getd'
  
!         aetools.keysubst(_arguments, self._argmap_get)
!         _arguments['----'] = _object
  
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
!     _argmap_make = {
!         'new' : 'kocl',
!         'as' : 'rtyp',
!         'at' : 'insh',
!         'with_data' : 'data',
!         'with_properties' : 'prdt',
!     }
  
!     def make(self, _no_object=None, _attributes={}, **_arguments):
!         """make: make a new element
!         Keyword argument new: the class of the new element\xd1keyword 'new' is optional in AppleScript
!         Keyword argument as: the desired types for the data, in order of preference
!         Keyword argument at: the location at which to insert the element
!         Keyword argument with_data: the initial data for the element
!         Keyword argument with_properties: the initial values for the properties of the element
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         Returns: to the new object(s)
!         """
!         _code = 'core'
!         _subcode = 'crel'
  
!         aetools.keysubst(_arguments, self._argmap_make)
!         if _no_object != None: raise TypeError, 'No direct arg expected'
  
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
!     def select(self, _object=None, _attributes={}, **_arguments):
!         """select: select the specified object
!         Required argument: the object to select
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         """
!         _code = 'misc'
!         _subcode = 'slct'
  
!         if _arguments: raise TypeError, 'No optional args expected'
!         _arguments['----'] = _object
  
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
!     _argmap_set = {
!         'to' : 'data',
!     }
  
!     def set(self, _object, _attributes={}, **_arguments):
!         """set: set an object's data
!         Required argument: the object to change
!         Keyword argument to: the new value
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         """
!         _code = 'core'
!         _subcode = 'setd'
  
!         aetools.keysubst(_arguments, self._argmap_set)
!         _arguments['----'] = _object
  
  
!         _reply, _arguments, _attributes = self.send(_code, _subcode,
!                 _arguments, _attributes)
!         if _arguments.get('errn', 0):
!             raise aetools.Error, aetools.decodeerror(_arguments)
!         # XXXX Optionally decode result
!         if _arguments.has_key('----'):
!             return _arguments['----']
  
  
  class application(aetools.ComponentItem):
!     """application - an application program """
!     want = 'capp'
  class _Prop_user_interaction(aetools.NProperty):
!     """user interaction - user interaction level """
!     which = 'inte'
!     want = 'Inte'
  #        element 'cwin' as ['indx', 'name', 'rang']
  #        element 'docu' as ['indx', 'name', 'rang']
  
  class character(aetools.ComponentItem):
!     """character - a character """
!     want = 'cha '
  class _Prop_length(aetools.NProperty):
!     """length - length in characters of this object """
!     which = 'pLen'
!     want = 'long'
  class _Prop_offset(aetools.NProperty):
!     """offset - offset of a text object from the beginning of the document (first char has offset 1) """
!     which = 'pOff'
!     want = 'long'
  
  class insertion_point(aetools.ComponentItem):
!     """insertion point - An insertion location between two objects """
!     want = 'cins'
  
  class line(aetools.ComponentItem):
!     """line - lines of text """
!     want = 'clin'
  class _Prop_index(aetools.NProperty):
!     """index - index of a line object from the beginning of the document (first line has index 1) """
!     which = 'pidx'
!     want = 'long'
  #        element 'cha ' as ['indx', 'rang', 'rele']
  
***************
*** 211,220 ****
  
  class selection_2d_object(aetools.ComponentItem):
! 	"""selection-object - the selection visible to the user """
! 	want = 'csel'
  class _Prop_contents(aetools.NProperty):
! 	"""contents - the contents of the selection """
! 	which = 'pcnt'
! 	want = 'type'
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
  #        element 'clin' as ['indx', 'rang', 'rele']
--- 211,220 ----
  
  class selection_2d_object(aetools.ComponentItem):
!     """selection-object - the selection visible to the user """
!     want = 'csel'
  class _Prop_contents(aetools.NProperty):
!     """contents - the contents of the selection """
!     which = 'pcnt'
!     want = 'type'
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
  #        element 'clin' as ['indx', 'rang', 'rele']
***************
*** 222,227 ****
  
  class text(aetools.ComponentItem):
! 	"""text - Text """
! 	want = 'ctxt'
  #        element 'cha ' as ['indx', 'rele', 'rang']
  #        element 'cins' as ['rele']
--- 222,227 ----
  
  class text(aetools.ComponentItem):
!     """text - Text """
!     want = 'ctxt'
  #        element 'cha ' as ['indx', 'rele', 'rang']
  #        element 'cins' as ['rele']
***************
*** 230,301 ****
  
  class window(aetools.ComponentItem):
! 	"""window - A window """
! 	want = 'cwin'
  class _Prop_bounds(aetools.NProperty):
! 	"""bounds - the boundary rectangle for the window """
! 	which = 'pbnd'
! 	want = 'qdrt'
  class _Prop_document(aetools.NProperty):
! 	"""document - the document that owns this window """
! 	which = 'docu'
! 	want = 'docu'
  class _Prop_name(aetools.NProperty):
! 	"""name - the title of the window """
! 	which = 'pnam'
! 	want = 'itxt'
  class _Prop_position(aetools.NProperty):
! 	"""position - upper left coordinates of window """
! 	which = 'ppos'
! 	want = 'QDpt'
  class _Prop_visible(aetools.NProperty):
! 	"""visible - is the window visible? """
! 	which = 'pvis'
! 	want = 'bool'
  class _Prop_zoomed(aetools.NProperty):
! 	"""zoomed - Is the window zoomed? """
! 	which = 'pzum'
! 	want = 'bool'
  
  windows = window
  
  class document(aetools.ComponentItem):
! 	"""document - a document """
! 	want = 'docu'
  class _Prop_file_permissions(aetools.NProperty):
! 	"""file permissions - the file permissions for the document """
! 	which = 'PERM'
! 	want = 'PERM'
  class _Prop_kind(aetools.NProperty):
! 	"""kind - the kind of document """
! 	which = 'DKND'
! 	want = 'DKND'
  class _Prop_location(aetools.NProperty):
! 	"""location - the file of the document """
! 	which = 'FILE'
! 	want = 'fss '
  class _Prop_window(aetools.NProperty):
! 	"""window - the window of the document. """
! 	which = 'cwin'
! 	want = 'cwin'
  
  documents = document
  
  class files(aetools.ComponentItem):
! 	"""files - Every file """
! 	want = 'file'
  
  file = files
  application._superclassnames = []
  application._privpropdict = {
! 	'user_interaction' : _Prop_user_interaction,
  }
  application._privelemdict = {
! 	'document' : document,
! 	'window' : window,
  }
  character._superclassnames = []
  character._privpropdict = {
! 	'length' : _Prop_length,
! 	'offset' : _Prop_offset,
  }
  character._privelemdict = {
--- 230,301 ----
  
  class window(aetools.ComponentItem):
!     """window - A window """
!     want = 'cwin'
  class _Prop_bounds(aetools.NProperty):
!     """bounds - the boundary rectangle for the window """
!     which = 'pbnd'
!     want = 'qdrt'
  class _Prop_document(aetools.NProperty):
!     """document - the document that owns this window """
!     which = 'docu'
!     want = 'docu'
  class _Prop_name(aetools.NProperty):
!     """name - the title of the window """
!     which = 'pnam'
!     want = 'itxt'
  class _Prop_position(aetools.NProperty):
!     """position - upper left coordinates of window """
!     which = 'ppos'
!     want = 'QDpt'
  class _Prop_visible(aetools.NProperty):
!     """visible - is the window visible? """
!     which = 'pvis'
!     want = 'bool'
  class _Prop_zoomed(aetools.NProperty):
!     """zoomed - Is the window zoomed? """
!     which = 'pzum'
!     want = 'bool'
  
  windows = window
  
  class document(aetools.ComponentItem):
!     """document - a document """
!     want = 'docu'
  class _Prop_file_permissions(aetools.NProperty):
!     """file permissions - the file permissions for the document """
!     which = 'PERM'
!     want = 'PERM'
  class _Prop_kind(aetools.NProperty):
!     """kind - the kind of document """
!     which = 'DKND'
!     want = 'DKND'
  class _Prop_location(aetools.NProperty):
!     """location - the file of the document """
!     which = 'FILE'
!     want = 'fss '
  class _Prop_window(aetools.NProperty):
!     """window - the window of the document. """
!     which = 'cwin'
!     want = 'cwin'
  
  documents = document
  
  class files(aetools.ComponentItem):
!     """files - Every file """
!     want = 'file'
  
  file = files
  application._superclassnames = []
  application._privpropdict = {
!     'user_interaction' : _Prop_user_interaction,
  }
  application._privelemdict = {
!     'document' : document,
!     'window' : window,
  }
  character._superclassnames = []
  character._privpropdict = {
!     'length' : _Prop_length,
!     'offset' : _Prop_offset,
  }
  character._privelemdict = {
***************
*** 303,308 ****
  insertion_point._superclassnames = []
  insertion_point._privpropdict = {
! 	'length' : _Prop_length,
! 	'offset' : _Prop_offset,
  }
  insertion_point._privelemdict = {
--- 303,308 ----
  insertion_point._superclassnames = []
  insertion_point._privpropdict = {
!     'length' : _Prop_length,
!     'offset' : _Prop_offset,
  }
  insertion_point._privelemdict = {
***************
*** 310,351 ****
  line._superclassnames = []
  line._privpropdict = {
! 	'index' : _Prop_index,
! 	'length' : _Prop_length,
! 	'offset' : _Prop_offset,
  }
  line._privelemdict = {
! 	'character' : character,
  }
  selection_2d_object._superclassnames = []
  selection_2d_object._privpropdict = {
! 	'contents' : _Prop_contents,
! 	'length' : _Prop_length,
! 	'offset' : _Prop_offset,
  }
  selection_2d_object._privelemdict = {
! 	'character' : character,
! 	'line' : line,
! 	'text' : text,
  }
  text._superclassnames = []
  text._privpropdict = {
! 	'length' : _Prop_length,
! 	'offset' : _Prop_offset,
  }
  text._privelemdict = {
! 	'character' : character,
! 	'insertion_point' : insertion_point,
! 	'line' : line,
! 	'text' : text,
  }
  window._superclassnames = []
  window._privpropdict = {
! 	'bounds' : _Prop_bounds,
! 	'document' : _Prop_document,
! 	'index' : _Prop_index,
! 	'name' : _Prop_name,
! 	'position' : _Prop_position,
! 	'visible' : _Prop_visible,
! 	'zoomed' : _Prop_zoomed,
  }
  window._privelemdict = {
--- 310,351 ----
  line._superclassnames = []
  line._privpropdict = {
!     'index' : _Prop_index,
!     'length' : _Prop_length,
!     'offset' : _Prop_offset,
  }
  line._privelemdict = {
!     'character' : character,
  }
  selection_2d_object._superclassnames = []
  selection_2d_object._privpropdict = {
!     'contents' : _Prop_contents,
!     'length' : _Prop_length,
!     'offset' : _Prop_offset,
  }
  selection_2d_object._privelemdict = {
!     'character' : character,
!     'line' : line,
!     'text' : text,
  }
  text._superclassnames = []
  text._privpropdict = {
!     'length' : _Prop_length,
!     'offset' : _Prop_offset,
  }
  text._privelemdict = {
!     'character' : character,
!     'insertion_point' : insertion_point,
!     'line' : line,
!     'text' : text,
  }
  window._superclassnames = []
  window._privpropdict = {
!     'bounds' : _Prop_bounds,
!     'document' : _Prop_document,
!     'index' : _Prop_index,
!     'name' : _Prop_name,
!     'position' : _Prop_position,
!     'visible' : _Prop_visible,
!     'zoomed' : _Prop_zoomed,
  }
  window._privelemdict = {
***************
*** 353,362 ****
  document._superclassnames = []
  document._privpropdict = {
! 	'file_permissions' : _Prop_file_permissions,
! 	'index' : _Prop_index,
! 	'kind' : _Prop_kind,
! 	'location' : _Prop_location,
! 	'name' : _Prop_name,
! 	'window' : _Prop_window,
  }
  document._privelemdict = {
--- 353,362 ----
  document._superclassnames = []
  document._privpropdict = {
!     'file_permissions' : _Prop_file_permissions,
!     'index' : _Prop_index,
!     'kind' : _Prop_kind,
!     'location' : _Prop_location,
!     'name' : _Prop_name,
!     'window' : _Prop_window,
  }
  document._privelemdict = {
***************
*** 372,383 ****
  #
  _classdeclarations = {
! 	'capp' : application,
! 	'cha ' : character,
! 	'cins' : insertion_point,
! 	'clin' : line,
! 	'csel' : selection_2d_object,
! 	'ctxt' : text,
! 	'cwin' : window,
! 	'docu' : document,
! 	'file' : files,
  }
--- 372,407 ----
  #
  _classdeclarations = {
!     'capp' : application,
!     'cha ' : character,
!     'cins' : insertion_point,
!     'clin' : line,
!     'csel' : selection_2d_object,
!     'ctxt' : text,
!     'cwin' : window,
!     'docu' : document,
!     'file' : files,
! }
! 
! _propdeclarations = {
!     'DKND' : _Prop_kind,
!     'FILE' : _Prop_location,
!     'PERM' : _Prop_file_permissions,
!     'cwin' : _Prop_window,
!     'docu' : _Prop_document,
!     'inte' : _Prop_user_interaction,
!     'pLen' : _Prop_length,
!     'pOff' : _Prop_offset,
!     'pbnd' : _Prop_bounds,
!     'pcnt' : _Prop_contents,
!     'pidx' : _Prop_index,
!     'pnam' : _Prop_name,
!     'ppos' : _Prop_position,
!     'pvis' : _Prop_visible,
!     'pzum' : _Prop_zoomed,
! }
! 
! _compdeclarations = {
! }
! 
! _enumdeclarations = {
  }

Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** __init__.py	1 Apr 2003 22:04:29 -0000	1.7
--- __init__.py	12 Apr 2003 22:27:06 -0000	1.8
***************
*** 11,18 ****
  
  _code_to_module = {
! 	'CWIE' : CodeWarrior_suite,
! 	'CoRe' : Standard_Suite,
! 	'MMPR' : Metrowerks_Shell_Suite,
! 	'reqd' : Required,
  }
  
--- 11,18 ----
  
  _code_to_module = {
!     'CWIE' : CodeWarrior_suite,
!     'CoRe' : Standard_Suite,
!     'MMPR' : Metrowerks_Shell_Suite,
!     'reqd' : Required,
  }
  
***************
*** 20,27 ****
  
  _code_to_fullname = {
! 	'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'),
! 	'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'),
! 	'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'),
! 	'reqd' : ('CodeWarrior.Required', 'Required'),
  }
  
--- 20,27 ----
  
  _code_to_fullname = {
!     'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'),
!     'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'),
!     'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'),
!     'reqd' : ('CodeWarrior.Required', 'Required'),
  }
  
***************
*** 32,45 ****
  
  def getbaseclasses(v):
! 	if not getattr(v, '_propdict', None):
! 		v._propdict = {}
! 		v._elemdict = {}
! 		for superclassname in getattr(v, '_superclassnames', []):
! 			superclass = eval(superclassname)
! 			getbaseclasses(superclass)
! 			v._propdict.update(getattr(superclass, '_propdict', {}))
! 			v._elemdict.update(getattr(superclass, '_elemdict', {}))
! 		v._propdict.update(getattr(v, '_privpropdict', {}))
! 		v._elemdict.update(getattr(v, '_privelemdict', {}))
  
  import StdSuites
--- 32,45 ----
  
  def getbaseclasses(v):
!     if not getattr(v, '_propdict', None):
!         v._propdict = {}
!         v._elemdict = {}
!         for superclassname in getattr(v, '_superclassnames', []):
!             superclass = eval(superclassname)
!             getbaseclasses(superclass)
!             v._propdict.update(getattr(superclass, '_propdict', {}))
!             v._elemdict.update(getattr(superclass, '_elemdict', {}))
!         v._propdict.update(getattr(v, '_privpropdict', {}))
!         v._elemdict.update(getattr(v, '_privelemdict', {}))
  
  import StdSuites
***************
*** 48,60 ****
  # Set property and element dictionaries now that all classes have been defined
  #
- getbaseclasses(character)
- getbaseclasses(text)
- getbaseclasses(window)
- getbaseclasses(file)
- getbaseclasses(line)
- getbaseclasses(selection_2d_object)
- getbaseclasses(application)
- getbaseclasses(insertion_point)
- getbaseclasses(document)
  getbaseclasses(single_class_browser)
  getbaseclasses(project_document)
--- 48,51 ----
***************
*** 110,113 ****
--- 101,113 ----
  getbaseclasses(Debugger_Display)
  getbaseclasses(class_)
+ getbaseclasses(character)
+ getbaseclasses(text)
+ getbaseclasses(window)
+ getbaseclasses(file)
+ getbaseclasses(line)
+ getbaseclasses(selection_2d_object)
+ getbaseclasses(application)
+ getbaseclasses(insertion_point)
+ getbaseclasses(document)
  
  #
***************
*** 115,190 ****
  #
  _classdeclarations = {
! 	'cha ' : character,
! 	'ctxt' : text,
! 	'cwin' : window,
! 	'file' : file,
! 	'clin' : line,
! 	'csel' : selection_2d_object,
! 	'capp' : application,
! 	'cins' : insertion_point,
! 	'docu' : document,
! 	'1BRW' : single_class_browser,
! 	'PRJD' : project_document,
! 	'SYMB' : symbol_browser,
! 	'EDIT' : editor_document,
! 	'COMP' : file_compare_document,
! 	'BROW' : class_browser,
! 	'SBTG' : subtarget,
! 	'MSSG' : message_document,
! 	'INSP' : project_inspector,
! 	'TXTD' : text_document,
! 	'CTLG' : catalog_document,
! 	'HIER' : class_hierarchy,
! 	'TRGT' : target,
! 	'PRGS' : build_progress_document,
! 	'SRCF' : target_file,
! 	'TOOL' : ToolServer_worksheet,
! 	'1HIR' : single_class_hierarchy,
! 	'FMap' : File_Mapping,
! 	'Cata' : browser_catalog,
! 	'BSTG' : Build_Settings,
! 	'SrcF' : ProjectFile,
! 	'BRKW' : Browser_Coloring,
! 	'ErrM' : Error_Information,
! 	'VCSs' : VCS_Setup,
! 	'EDTR' : Editor,
! 	'SHFL' : Shielded_Folders,
! 	'SFit' : Shielded_Folder,
! 	'CUKW' : Custom_Keywords,
! 	'PInf' : Path_Information,
! 	'FLMP' : File_Mappings,
! 	'Seg ' : Segment,
! 	'DbTG' : Debugger_Target,
! 	'FDef' : Function_Information,
! 	'PATH' : Access_Paths,
! 	'GXTR' : Extras,
! 	'DbWN' : Debugger_Windowing,
! 	'GSTs' : Global_Source_Trees,
! 	'SNTX' : Syntax_Coloring,
! 	'BsCl' : base_class,
! 	'RlPt' : Relative_Path,
! 	'TARG' : Target_Settings,
! 	'EnvV' : Environment_Variable,
! 	'SrcT' : Source_Tree,
! 	'DbGL' : Debugger_Global,
! 	'MbFn' : member_function,
! 	'RSTG' : Runtime_Settings,
! 	'PSTG' : Plugin_Settings,
! 	'DtMb' : data_member,
! 	'LXTR' : Build_Extras,
! 	'mFNT' : Font,
! 	'TSTs' : Target_Source_Trees,
! 	'DbDS' : Debugger_Display,
! 	'Clas' : class_,
  }
  
  
  class CodeWarrior(CodeWarrior_suite_Events,
! 		Standard_Suite_Events,
! 		Metrowerks_Shell_Suite_Events,
! 		Required_Events,
! 		aetools.TalkTo):
! 	_signature = 'CWIE'
  
! 	_moduleName = 'CodeWarrior'
  
--- 115,190 ----
  #
  _classdeclarations = {
!     '1BRW' : single_class_browser,
!     'PRJD' : project_document,
!     'SYMB' : symbol_browser,
!     'EDIT' : editor_document,
!     'COMP' : file_compare_document,
!     'BROW' : class_browser,
!     'SBTG' : subtarget,
!     'MSSG' : message_document,
!     'INSP' : project_inspector,
!     'TXTD' : text_document,
!     'CTLG' : catalog_document,
!     'HIER' : class_hierarchy,
!     'TRGT' : target,
!     'PRGS' : build_progress_document,
!     'SRCF' : target_file,
!     'TOOL' : ToolServer_worksheet,
!     '1HIR' : single_class_hierarchy,
!     'FMap' : File_Mapping,
!     'Cata' : browser_catalog,
!     'BSTG' : Build_Settings,
!     'SrcF' : ProjectFile,
!     'BRKW' : Browser_Coloring,
!     'ErrM' : Error_Information,
!     'VCSs' : VCS_Setup,
!     'EDTR' : Editor,
!     'SHFL' : Shielded_Folders,
!     'SFit' : Shielded_Folder,
!     'CUKW' : Custom_Keywords,
!     'PInf' : Path_Information,
!     'FLMP' : File_Mappings,
!     'Seg ' : Segment,
!     'DbTG' : Debugger_Target,
!     'FDef' : Function_Information,
!     'PATH' : Access_Paths,
!     'GXTR' : Extras,
!     'DbWN' : Debugger_Windowing,
!     'GSTs' : Global_Source_Trees,
!     'SNTX' : Syntax_Coloring,
!     'BsCl' : base_class,
!     'RlPt' : Relative_Path,
!     'TARG' : Target_Settings,
!     'EnvV' : Environment_Variable,
!     'SrcT' : Source_Tree,
!     'DbGL' : Debugger_Global,
!     'MbFn' : member_function,
!     'RSTG' : Runtime_Settings,
!     'PSTG' : Plugin_Settings,
!     'DtMb' : data_member,
!     'LXTR' : Build_Extras,
!     'mFNT' : Font,
!     'TSTs' : Target_Source_Trees,
!     'DbDS' : Debugger_Display,
!     'Clas' : class_,
!     'cha ' : character,
!     'ctxt' : text,
!     'cwin' : window,
!     'file' : file,
!     'clin' : line,
!     'csel' : selection_2d_object,
!     'capp' : application,
!     'cins' : insertion_point,
!     'docu' : document,
  }
  
  
  class CodeWarrior(CodeWarrior_suite_Events,
!         Standard_Suite_Events,
!         Metrowerks_Shell_Suite_Events,
!         Required_Events,
!         aetools.TalkTo):
!     _signature = 'CWIE'
  
!     _moduleName = 'CodeWarrior'