diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:08:54 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:08:54 (GMT) |
commit | 95df3fd15933dafbb2f1140d011794cc8ccbdc76 (patch) | |
tree | ae7faa5a51767c127cf9e3e60f3247e77f1c758a /Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py | |
parent | 18983536dcb1b430934f345dc1d95aaadbafa2c0 (diff) | |
download | cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.zip cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.tar.gz cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.tar.bz2 |
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.
Bugfix candidate.
Diffstat (limited to 'Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py')
-rw-r--r-- | Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py index ef2ad1b..1d16255 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms that most applications should support Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -10,7 +10,8 @@ import MacOS _code = 'CoRe' -class Standard_Suite_Events: +from StdSuites.Standard_Suite import * +class Standard_Suite_Events(Standard_Suite_Events): _argmap_open = { 'using' : 'usin', @@ -33,7 +34,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -58,7 +59,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -77,7 +78,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -97,7 +98,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -123,7 +124,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -149,7 +150,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -170,7 +171,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -202,7 +203,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -223,7 +224,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -254,7 +255,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -289,7 +290,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -309,12 +310,14 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] +import AppleScript_Suite +import AppleScript_Suite _Enum_list = None # XXXX enum list not found!! _Enum_bool = None # XXXX enum bool not found!! |