[Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal Standard_Suite.py,1.3,1.4 Terminal_Suite.py,1.6,1.7 Text_Suite.py,1.2,1.3 __init__.py,1.6,1.7

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


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

Modified Files:
	Standard_Suite.py Terminal_Suite.py Text_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: Standard_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/Standard_Suite.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Standard_Suite.py	1 Apr 2003 22:05:10 -0000	1.3
--- Standard_Suite.py	12 Apr 2003 22:27:11 -0000	1.4
***************
*** 13,353 ****
  class Standard_Suite_Events:
  
! 	_argmap_close = {
! 		'saving_in' : 'kfil',
! 		'saving' : 'savo',
! 	}
  
! 	def close(self, _object, _attributes={}, **_arguments):
! 		"""close: Close an object.
! 		Required argument: the object for the command
[...1062 lines suppressed...]
!     'ptit' : _Prop_titled,
!     'pvis' : _Prop_visible,
!     'pzum' : _Prop_zoomed,
!     'vers' : _Prop_version,
! }
! 
! _compdeclarations = {
!     '<   ' : _3c_,
!     '<=  ' : _b2_,
!     '=   ' : _3d_,
!     '>   ' : _3e_,
!     '>=  ' : _b3_,
!     'bgwt' : starts_with,
!     'cont' : contains,
!     'ends' : ends_with,
! }
! 
! _enumdeclarations = {
!     'savo' : _Enum_savo,
  }

Index: Terminal_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Terminal_Suite.py	1 Apr 2003 22:05:12 -0000	1.6
--- Terminal_Suite.py	12 Apr 2003 22:27:11 -0000	1.7
***************
*** 13,76 ****
  class Terminal_Suite_Events:
  
! 	def GetURL(self, _object, _attributes={}, **_arguments):
! 		"""GetURL: Opens a telnet: URL
! 		Required argument: the object for the command
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		"""
! 		_code = 'GURL'
! 		_subcode = 'GURL'
  
! 		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_do_script = {
! 		'in_' : 'kfil',
! 		'with_command' : 'cmnd',
! 	}
  
! 	def do_script(self, _object, _attributes={}, **_arguments):
! 		"""do script: Run a UNIX shell script or command
! 		Required argument: the object for the command
! 		Keyword argument in_: the window in which to execute the command
! 		Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
! 		Keyword argument _attributes: AppleEvent attribute dictionary
! 		Returns: the reply for the command
! 		"""
! 		_code = 'core'
! 		_subcode = 'dosc'
  
! 		aetools.keysubst(_arguments, self._argmap_do_script)
! 		_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 - The Terminal program """
! 	want = 'capp'
  class _Prop__3c_Inheritance_3e_(aetools.NProperty):
! 	"""<Inheritance> - All of the properties of the superclass. """
! 	which = 'c@#^'
! 	want = 'capp'
  class _Prop_properties(aetools.NProperty):
! 	"""properties - every property of the Terminal program """
! 	which = 'pALL'
! 	want = '****'
  #        element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID  ']
  #        element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
--- 13,76 ----
  class Terminal_Suite_Events:
  
!     def GetURL(self, _object, _attributes={}, **_arguments):
!         """GetURL: Opens a telnet: URL
!         Required argument: the object for the command
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         """
!         _code = 'GURL'
!         _subcode = 'GURL'
  
!         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_do_script = {
!         'in_' : 'kfil',
!         'with_command' : 'cmnd',
!     }
  
!     def do_script(self, _object, _attributes={}, **_arguments):
!         """do script: Run a UNIX shell script or command
!         Required argument: the object for the command
!         Keyword argument in_: the window in which to execute the command
!         Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
!         Keyword argument _attributes: AppleEvent attribute dictionary
!         Returns: the reply for the command
!         """
!         _code = 'core'
!         _subcode = 'dosc'
  
!         aetools.keysubst(_arguments, self._argmap_do_script)
!         _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 - The Terminal program """
!     want = 'capp'
  class _Prop__3c_Inheritance_3e_(aetools.NProperty):
!     """<Inheritance> - All of the properties of the superclass. """
!     which = 'c@#^'
!     want = 'capp'
  class _Prop_properties(aetools.NProperty):
!     """properties - every property of the Terminal program """
!     which = 'pALL'
!     want = '****'
  #        element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID  ']
  #        element 'docu' as ['name', 'indx', 'rele', 'rang', 'test']
***************
*** 79,172 ****
  
  class window(aetools.ComponentItem):
! 	"""window - A Terminal window """
! 	want = 'cwin'
  class _Prop_background_color(aetools.NProperty):
! 	"""background color - the background color for the window """
! 	which = 'pbcl'
! 	want = '****'
  class _Prop_bold_text_color(aetools.NProperty):
! 	"""bold text color - the bold text color for the window """
! 	which = 'pbtc'
! 	want = '****'
  class _Prop_bounds(aetools.NProperty):
! 	"""bounds - the boundary rectangle for the window, relative to the upper left corner of the screen """
! 	which = 'pbnd'
! 	want = '****'
  class _Prop_busy(aetools.NProperty):
! 	"""busy - Is the window busy running a process? """
! 	which = 'busy'
! 	want = 'bool'
  class _Prop_contents(aetools.NProperty):
! 	"""contents - the currently visible contents of the window """
! 	which = 'pcnt'
! 	want = 'utxt'
  class _Prop_cursor_color(aetools.NProperty):
! 	"""cursor color - the cursor color for the window """
! 	which = 'pcuc'
! 	want = '****'
  class _Prop_custom_title(aetools.NProperty):
! 	"""custom title - the custom title for the window """
! 	which = 'titl'
! 	want = 'utxt'
  class _Prop_frame(aetools.NProperty):
! 	"""frame - the origin and size of the window """
! 	which = 'pfra'
! 	want = '****'
  class _Prop_frontmost(aetools.NProperty):
! 	"""frontmost - Is the window in front of the other Terminal windows? """
! 	which = 'pisf'
! 	want = 'bool'
  class _Prop_history(aetools.NProperty):
! 	"""history - the contents of the entire scrolling buffer of the window """
! 	which = 'hist'
! 	want = 'utxt'
  class _Prop_normal_text_color(aetools.NProperty):
! 	"""normal text color - the normal text color for the window """
! 	which = 'ptxc'
! 	want = '****'
  class _Prop_number_of_columns(aetools.NProperty):
! 	"""number of columns - the number of columns in the window """
! 	which = 'ccol'
! 	want = 'long'
  class _Prop_number_of_rows(aetools.NProperty):
! 	"""number of rows - the number of rows in the window """
! 	which = 'crow'
! 	want = 'long'
  class _Prop_origin(aetools.NProperty):
! 	"""origin - the lower left coordinates of the window, relative to the lower left corner of the screen """
! 	which = 'pori'
! 	want = '****'
  class _Prop_position(aetools.NProperty):
! 	"""position - the upper left coordinates of the window, relative to the upper left corner of the screen """
! 	which = 'ppos'
! 	want = '****'
  class _Prop_processes(aetools.NProperty):
! 	"""processes - a list of the currently running processes """
! 	which = 'prcs'
! 	want = 'utxt'
  class _Prop_size(aetools.NProperty):
! 	"""size - the width and height of the window """
! 	which = 'psiz'
! 	want = '****'
  class _Prop_title_displays_custom_title(aetools.NProperty):
! 	"""title displays custom title - Does the title for the window contain a custom title? """
! 	which = 'tdct'
! 	want = 'bool'
  class _Prop_title_displays_device_name(aetools.NProperty):
! 	"""title displays device name - Does the title for the window contain the device name? """
! 	which = 'tddn'
! 	want = 'bool'
  class _Prop_title_displays_file_name(aetools.NProperty):
! 	"""title displays file name - Does the title for the window contain the file name? """
! 	which = 'tdfn'
! 	want = 'bool'
  class _Prop_title_displays_shell_path(aetools.NProperty):
! 	"""title displays shell path - Does the title for the window contain the shell path? """
! 	which = 'tdsp'
! 	want = 'bool'
  class _Prop_title_displays_window_size(aetools.NProperty):
! 	"""title displays window size - Does the title for the window contain the window size? """
! 	which = 'tdws'
! 	want = 'bool'
  
  windows = window
--- 79,172 ----
  
  class window(aetools.ComponentItem):
!     """window - A Terminal window """
!     want = 'cwin'
  class _Prop_background_color(aetools.NProperty):
!     """background color - the background color for the window """
!     which = 'pbcl'
!     want = '****'
  class _Prop_bold_text_color(aetools.NProperty):
!     """bold text color - the bold text color for the window """
!     which = 'pbtc'
!     want = '****'
  class _Prop_bounds(aetools.NProperty):
!     """bounds - the boundary rectangle for the window, relative to the upper left corner of the screen """
!     which = 'pbnd'
!     want = '****'
  class _Prop_busy(aetools.NProperty):
!     """busy - Is the window busy running a process? """
!     which = 'busy'
!     want = 'bool'
  class _Prop_contents(aetools.NProperty):
!     """contents - the currently visible contents of the window """
!     which = 'pcnt'
!     want = 'utxt'
  class _Prop_cursor_color(aetools.NProperty):
!     """cursor color - the cursor color for the window """
!     which = 'pcuc'
!     want = '****'
  class _Prop_custom_title(aetools.NProperty):
!     """custom title - the custom title for the window """
!     which = 'titl'
!     want = 'utxt'
  class _Prop_frame(aetools.NProperty):
!     """frame - the origin and size of the window """
!     which = 'pfra'
!     want = '****'
  class _Prop_frontmost(aetools.NProperty):
!     """frontmost - Is the window in front of the other Terminal windows? """
!     which = 'pisf'
!     want = 'bool'
  class _Prop_history(aetools.NProperty):
!     """history - the contents of the entire scrolling buffer of the window """
!     which = 'hist'
!     want = 'utxt'
  class _Prop_normal_text_color(aetools.NProperty):
!     """normal text color - the normal text color for the window """
!     which = 'ptxc'
!     want = '****'
  class _Prop_number_of_columns(aetools.NProperty):
!     """number of columns - the number of columns in the window """
!     which = 'ccol'
!     want = 'long'
  class _Prop_number_of_rows(aetools.NProperty):
!     """number of rows - the number of rows in the window """
!     which = 'crow'
!     want = 'long'
  class _Prop_origin(aetools.NProperty):
!     """origin - the lower left coordinates of the window, relative to the lower left corner of the screen """
!     which = 'pori'
!     want = '****'
  class _Prop_position(aetools.NProperty):
!     """position - the upper left coordinates of the window, relative to the upper left corner of the screen """
!     which = 'ppos'
!     want = '****'
  class _Prop_processes(aetools.NProperty):
!     """processes - a list of the currently running processes """
!     which = 'prcs'
!     want = 'utxt'
  class _Prop_size(aetools.NProperty):
!     """size - the width and height of the window """
!     which = 'psiz'
!     want = '****'
  class _Prop_title_displays_custom_title(aetools.NProperty):
!     """title displays custom title - Does the title for the window contain a custom title? """
!     which = 'tdct'
!     want = 'bool'
  class _Prop_title_displays_device_name(aetools.NProperty):
!     """title displays device name - Does the title for the window contain the device name? """
!     which = 'tddn'
!     want = 'bool'
  class _Prop_title_displays_file_name(aetools.NProperty):
!     """title displays file name - Does the title for the window contain the file name? """
!     which = 'tdfn'
!     want = 'bool'
  class _Prop_title_displays_shell_path(aetools.NProperty):
!     """title displays shell path - Does the title for the window contain the shell path? """
!     which = 'tdsp'
!     want = 'bool'
  class _Prop_title_displays_window_size(aetools.NProperty):
!     """title displays window size - Does the title for the window contain the window size? """
!     which = 'tdws'
!     want = 'bool'
  
  windows = window
***************
*** 174,210 ****
  import Standard_Suite
  application._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'properties' : _Prop_properties,
  }
  application._privelemdict = {
! 	'document' : Standard_Suite.document,
! 	'window' : window,
  }
  window._superclassnames = []
  window._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'background_color' : _Prop_background_color,
! 	'bold_text_color' : _Prop_bold_text_color,
! 	'bounds' : _Prop_bounds,
! 	'busy' : _Prop_busy,
! 	'contents' : _Prop_contents,
! 	'cursor_color' : _Prop_cursor_color,
! 	'custom_title' : _Prop_custom_title,
! 	'frame' : _Prop_frame,
! 	'frontmost' : _Prop_frontmost,
! 	'history' : _Prop_history,
! 	'normal_text_color' : _Prop_normal_text_color,
! 	'number_of_columns' : _Prop_number_of_columns,
! 	'number_of_rows' : _Prop_number_of_rows,
! 	'origin' : _Prop_origin,
! 	'position' : _Prop_position,
! 	'processes' : _Prop_processes,
! 	'properties' : _Prop_properties,
! 	'size' : _Prop_size,
! 	'title_displays_custom_title' : _Prop_title_displays_custom_title,
! 	'title_displays_device_name' : _Prop_title_displays_device_name,
! 	'title_displays_file_name' : _Prop_title_displays_file_name,
! 	'title_displays_shell_path' : _Prop_title_displays_shell_path,
! 	'title_displays_window_size' : _Prop_title_displays_window_size,
  }
  window._privelemdict = {
--- 174,210 ----
  import Standard_Suite
  application._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'properties' : _Prop_properties,
  }
  application._privelemdict = {
!     'document' : Standard_Suite.document,
!     'window' : window,
  }
  window._superclassnames = []
  window._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'background_color' : _Prop_background_color,
!     'bold_text_color' : _Prop_bold_text_color,
!     'bounds' : _Prop_bounds,
!     'busy' : _Prop_busy,
!     'contents' : _Prop_contents,
!     'cursor_color' : _Prop_cursor_color,
!     'custom_title' : _Prop_custom_title,
!     'frame' : _Prop_frame,
!     'frontmost' : _Prop_frontmost,
!     'history' : _Prop_history,
!     'normal_text_color' : _Prop_normal_text_color,
!     'number_of_columns' : _Prop_number_of_columns,
!     'number_of_rows' : _Prop_number_of_rows,
!     'origin' : _Prop_origin,
!     'position' : _Prop_position,
!     'processes' : _Prop_processes,
!     'properties' : _Prop_properties,
!     'size' : _Prop_size,
!     'title_displays_custom_title' : _Prop_title_displays_custom_title,
!     'title_displays_device_name' : _Prop_title_displays_device_name,
!     'title_displays_file_name' : _Prop_title_displays_file_name,
!     'title_displays_shell_path' : _Prop_title_displays_shell_path,
!     'title_displays_window_size' : _Prop_title_displays_window_size,
  }
  window._privelemdict = {
***************
*** 215,219 ****
  #
  _classdeclarations = {
! 	'capp' : application,
! 	'cwin' : window,
  }
--- 215,252 ----
  #
  _classdeclarations = {
!     'capp' : application,
!     'cwin' : window,
! }
! 
! _propdeclarations = {
!     'busy' : _Prop_busy,
!     'c@#^' : _Prop__3c_Inheritance_3e_,
!     'ccol' : _Prop_number_of_columns,
!     'crow' : _Prop_number_of_rows,
!     'hist' : _Prop_history,
!     'pALL' : _Prop_properties,
!     'pbcl' : _Prop_background_color,
!     'pbnd' : _Prop_bounds,
!     'pbtc' : _Prop_bold_text_color,
!     'pcnt' : _Prop_contents,
!     'pcuc' : _Prop_cursor_color,
!     'pfra' : _Prop_frame,
!     'pisf' : _Prop_frontmost,
!     'pori' : _Prop_origin,
!     'ppos' : _Prop_position,
!     'prcs' : _Prop_processes,
!     'psiz' : _Prop_size,
!     'ptxc' : _Prop_normal_text_color,
!     'tdct' : _Prop_title_displays_custom_title,
!     'tddn' : _Prop_title_displays_device_name,
!     'tdfn' : _Prop_title_displays_file_name,
!     'tdsp' : _Prop_title_displays_shell_path,
!     'tdws' : _Prop_title_displays_window_size,
!     'titl' : _Prop_custom_title,
! }
! 
! _compdeclarations = {
! }
! 
! _enumdeclarations = {
  }

Index: Text_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Text_Suite.py	1 Apr 2003 22:05:13 -0000	1.2
--- Text_Suite.py	12 Apr 2003 22:27:11 -0000	1.3
***************
*** 13,30 ****
  class Text_Suite_Events:
  
! 	pass
  
  
  class attachment(aetools.ComponentItem):
! 	"""attachment - Represents an inline text attachment.  This class is used mainly for make commands. """
! 	want = 'atts'
  class _Prop__3c_Inheritance_3e_(aetools.NProperty):
! 	"""<Inheritance> - All of the properties of the superclass. """
! 	which = 'c@#^'
! 	want = 'ctxt'
  class _Prop_file_name(aetools.NProperty):
! 	"""file name - The path to the file for the attachment """
! 	which = 'atfn'
! 	want = 'utxt'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 13,30 ----
  class Text_Suite_Events:
  
!     pass
  
  
  class attachment(aetools.ComponentItem):
!     """attachment - Represents an inline text attachment.  This class is used mainly for make commands. """
!     want = 'atts'
  class _Prop__3c_Inheritance_3e_(aetools.NProperty):
!     """<Inheritance> - All of the properties of the superclass. """
!     which = 'c@#^'
!     want = 'ctxt'
  class _Prop_file_name(aetools.NProperty):
!     """file name - The path to the file for the attachment """
!     which = 'atfn'
!     want = 'utxt'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 33,50 ****
  
  class attribute_run(aetools.ComponentItem):
! 	"""attribute run - This subdivides the text into chunks that all have the same attributes. """
! 	want = 'catr'
  class _Prop_color(aetools.NProperty):
! 	"""color - The color of the first character. """
! 	which = 'colr'
! 	want = 'colr'
  class _Prop_font(aetools.NProperty):
! 	"""font - The name of the font of the first character. """
! 	which = 'font'
! 	want = 'utxt'
  class _Prop_size(aetools.NProperty):
! 	"""size - The size in points of the first character. """
! 	which = 'ptsz'
! 	want = 'long'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 33,50 ----
  
  class attribute_run(aetools.ComponentItem):
!     """attribute run - This subdivides the text into chunks that all have the same attributes. """
!     want = 'catr'
  class _Prop_color(aetools.NProperty):
!     """color - The color of the first character. """
!     which = 'colr'
!     want = 'colr'
  class _Prop_font(aetools.NProperty):
!     """font - The name of the font of the first character. """
!     which = 'font'
!     want = 'utxt'
  class _Prop_size(aetools.NProperty):
!     """size - The size in points of the first character. """
!     which = 'ptsz'
!     want = 'long'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 55,60 ****
  
  class character(aetools.ComponentItem):
! 	"""character - This subdivides the text into characters. """
! 	want = 'cha '
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 55,60 ----
  
  class character(aetools.ComponentItem):
!     """character - This subdivides the text into characters. """
!     want = 'cha '
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 65,70 ****
  
  class paragraph(aetools.ComponentItem):
! 	"""paragraph - This subdivides the text into paragraphs. """
! 	want = 'cpar'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 65,70 ----
  
  class paragraph(aetools.ComponentItem):
!     """paragraph - This subdivides the text into paragraphs. """
!     want = 'cpar'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 75,80 ****
  
  class text(aetools.ComponentItem):
! 	"""text - Rich (styled) text """
! 	want = 'ctxt'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 75,80 ----
  
  class text(aetools.ComponentItem):
!     """text - Rich (styled) text """
!     want = 'ctxt'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 83,88 ****
  
  class word(aetools.ComponentItem):
! 	"""word - This subdivides the text into words. """
! 	want = 'cwor'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
--- 83,88 ----
  
  class word(aetools.ComponentItem):
!     """word - This subdivides the text into words. """
!     want = 'cwor'
  #        element 'catr' as ['indx', 'rele', 'rang', 'test']
  #        element 'cha ' as ['indx', 'rele', 'rang', 'test']
***************
*** 93,170 ****
  attachment._superclassnames = ['text']
  attachment._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'file_name' : _Prop_file_name,
  }
  attachment._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  import Standard_Suite
  attribute_run._superclassnames = ['item']
  attribute_run._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'color' : _Prop_color,
! 	'font' : _Prop_font,
! 	'size' : _Prop_size,
  }
  attribute_run._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  character._superclassnames = ['item']
  character._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'color' : _Prop_color,
! 	'font' : _Prop_font,
! 	'size' : _Prop_size,
  }
  character._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  paragraph._superclassnames = ['item']
  paragraph._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'color' : _Prop_color,
! 	'font' : _Prop_font,
! 	'size' : _Prop_size,
  }
  paragraph._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  text._superclassnames = ['item']
  text._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'color' : _Prop_color,
! 	'font' : _Prop_font,
! 	'size' : _Prop_size,
  }
  text._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  word._superclassnames = ['item']
  word._privpropdict = {
! 	'_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
! 	'color' : _Prop_color,
! 	'font' : _Prop_font,
! 	'size' : _Prop_size,
  }
  word._privelemdict = {
! 	'attribute_run' : attribute_run,
! 	'character' : character,
! 	'paragraph' : paragraph,
! 	'word' : word,
  }
  
--- 93,170 ----
  attachment._superclassnames = ['text']
  attachment._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'file_name' : _Prop_file_name,
  }
  attachment._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  import Standard_Suite
  attribute_run._superclassnames = ['item']
  attribute_run._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'color' : _Prop_color,
!     'font' : _Prop_font,
!     'size' : _Prop_size,
  }
  attribute_run._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  character._superclassnames = ['item']
  character._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'color' : _Prop_color,
!     'font' : _Prop_font,
!     'size' : _Prop_size,
  }
  character._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  paragraph._superclassnames = ['item']
  paragraph._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'color' : _Prop_color,
!     'font' : _Prop_font,
!     'size' : _Prop_size,
  }
  paragraph._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  text._superclassnames = ['item']
  text._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'color' : _Prop_color,
!     'font' : _Prop_font,
!     'size' : _Prop_size,
  }
  text._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  word._superclassnames = ['item']
  word._privpropdict = {
!     '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
!     'color' : _Prop_color,
!     'font' : _Prop_font,
!     'size' : _Prop_size,
  }
  word._privelemdict = {
!     'attribute_run' : attribute_run,
!     'character' : character,
!     'paragraph' : paragraph,
!     'word' : word,
  }
  
***************
*** 173,181 ****
  #
  _classdeclarations = {
! 	'atts' : attachment,
! 	'catr' : attribute_run,
! 	'cha ' : character,
! 	'cpar' : paragraph,
! 	'ctxt' : text,
! 	'cwor' : word,
  }
--- 173,195 ----
  #
  _classdeclarations = {
!     'atts' : attachment,
!     'catr' : attribute_run,
!     'cha ' : character,
!     'cpar' : paragraph,
!     'ctxt' : text,
!     'cwor' : word,
! }
! 
! _propdeclarations = {
!     'atfn' : _Prop_file_name,
!     'c@#^' : _Prop__3c_Inheritance_3e_,
!     'colr' : _Prop_color,
!     'font' : _Prop_font,
!     'ptsz' : _Prop_size,
! }
! 
! _compdeclarations = {
! }
! 
! _enumdeclarations = {
  }

Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** __init__.py	1 Apr 2003 22:05:14 -0000	1.6
--- __init__.py	12 Apr 2003 22:27:11 -0000	1.7
***************
*** 10,16 ****
  
  _code_to_module = {
! 	'????' : Standard_Suite,
! 	'????' : Text_Suite,
! 	'trmx' : Terminal_Suite,
  }
  
--- 10,16 ----
  
  _code_to_module = {
!     '????' : Standard_Suite,
!     '????' : Text_Suite,
!     'trmx' : Terminal_Suite,
  }
  
***************
*** 18,24 ****
  
  _code_to_fullname = {
! 	'????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
! 	'????' : ('Terminal.Text_Suite', 'Text_Suite'),
! 	'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
  }
  
--- 18,24 ----
  
  _code_to_fullname = {
!     '????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
!     '????' : ('Terminal.Text_Suite', 'Text_Suite'),
!     'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
  }
  
***************
*** 28,41 ****
  
  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
--- 28,41 ----
  
  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
***************
*** 44,47 ****
--- 44,52 ----
  # Set property and element dictionaries now that all classes have been defined
  #
+ getbaseclasses(color)
+ getbaseclasses(window)
+ getbaseclasses(application)
+ getbaseclasses(item)
+ getbaseclasses(document)
  getbaseclasses(character)
  getbaseclasses(attachment)
***************
*** 52,60 ****
  getbaseclasses(window)
  getbaseclasses(application)
- getbaseclasses(color)
- getbaseclasses(window)
- getbaseclasses(application)
- getbaseclasses(item)
- getbaseclasses(document)
  
  #
--- 57,60 ----
***************
*** 62,87 ****
  #
  _classdeclarations = {
! 	'cha ' : character,
! 	'atts' : attachment,
! 	'cpar' : paragraph,
! 	'cwor' : word,
! 	'catr' : attribute_run,
! 	'ctxt' : text,
! 	'cwin' : window,
! 	'capp' : application,
! 	'colr' : color,
! 	'cwin' : window,
! 	'capp' : application,
! 	'cobj' : item,
! 	'docu' : document,
  }
  
  
  class Terminal(Standard_Suite_Events,
! 		Text_Suite_Events,
! 		Terminal_Suite_Events,
! 		aetools.TalkTo):
! 	_signature = 'trmx'
  
! 	_moduleName = 'Terminal'
  
--- 62,87 ----
  #
  _classdeclarations = {
!     'colr' : color,
!     'cwin' : window,
!     'capp' : application,
!     'cobj' : item,
!     'docu' : document,
!     'cha ' : character,
!     'atts' : attachment,
!     'cpar' : paragraph,
!     'cwor' : word,
!     'catr' : attribute_run,
!     'ctxt' : text,
!     'cwin' : window,
!     'capp' : application,
  }
  
  
  class Terminal(Standard_Suite_Events,
!         Text_Suite_Events,
!         Terminal_Suite_Events,
!         aetools.TalkTo):
!     _signature = 'trmx'
  
!     _moduleName = 'Terminal'