[Python-checkins] python/dist/src/Mac/Lib/lib-scriptpackages/StdSuites AppleScript_Suite.py,1.3,1.4

jackjansen@sourceforge.net jackjansen@sourceforge.net
Tue, 23 Apr 2002 14:08:39 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib/lib-scriptpackages/StdSuites
In directory usw-pr-cvs1:/tmp/cvs-serv23718/Python/Mac/Lib/lib-scriptpackages/StdSuites

Modified Files:
	AppleScript_Suite.py 
Log Message:
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.

Bugfix candidate.

Index: AppleScript_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AppleScript_Suite.py	22 Jan 2002 23:21:56 -0000	1.3
--- AppleScript_Suite.py	23 Apr 2002 21:08:37 -0000	1.4
***************
*** 26,30 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 26,30 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 46,50 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 46,50 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 65,69 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 65,69 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 84,88 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 84,88 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 104,108 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 104,108 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 123,127 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 123,127 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 142,146 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 142,146 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 161,165 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 161,165 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 192,196 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 192,196 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 272,276 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 272,276 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 293,297 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 293,297 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 314,318 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 314,318 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 335,339 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 335,339 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 356,360 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 356,360 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 377,381 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 377,381 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 398,402 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 398,402 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 419,423 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 419,423 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 440,444 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 440,444 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 461,465 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 461,465 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 482,486 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 482,486 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 503,507 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 503,507 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 524,528 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 524,528 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 545,549 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 545,549 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 566,570 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 566,570 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 587,591 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 587,591 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 608,612 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 608,612 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 629,633 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 629,633 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 650,654 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 650,654 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 671,675 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 671,675 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 692,696 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 692,696 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 713,717 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 713,717 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 734,738 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 734,738 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result