summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-23 21:08:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-23 21:08:54 (GMT)
commit95df3fd15933dafbb2f1140d011794cc8ccbdc76 (patch)
treeae7faa5a51767c127cf9e3e60f3247e77f1c758a /Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
parent18983536dcb1b430934f345dc1d95aaadbafa2c0 (diff)
downloadcpython-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/Finder_items.py')
-rw-r--r--Mac/Lib/lib-scriptpackages/Finder/Finder_items.py61
1 files changed, 34 insertions, 27 deletions
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
index 742c51a..986ecba 100644
--- a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
+++ b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
@@ -1,7 +1,7 @@
"""Suite Finder items: Commands used with file system items, and basic item definition
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
"""
@@ -26,7 +26,7 @@ class Finder_items_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('----'):
@@ -51,7 +51,7 @@ class Finder_items_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('----'):
@@ -71,7 +71,7 @@ class Finder_items_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('----'):
@@ -91,7 +91,7 @@ class Finder_items_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('----'):
@@ -111,28 +111,34 @@ class Finder_items_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['----']
+ _argmap_put_away = {
+ 'asking' : 'fask',
+ }
+
def put_away(self, _object, _attributes={}, **_arguments):
"""put away: Put away the specified object(s)
Required argument: the items to put away
+ Keyword argument asking: Specifies whether or not to present a dialog to confirm putting this item away.
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the object put away in its put-away location
"""
_code = 'fndr'
_subcode = 'ptwy'
- if _arguments: raise TypeError, 'No optional args expected'
+ aetools.keysubst(_arguments, self._argmap_put_away)
_arguments['----'] = _object
+ aetools.enumsubst(_arguments, 'fask', _Enum_bool)
_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('----'):
@@ -152,7 +158,7 @@ class Finder_items_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('----'):
@@ -172,7 +178,7 @@ class Finder_items_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('----'):
@@ -293,6 +299,7 @@ item._propdict = {
}
item._elemdict = {
}
+_Enum_bool = None # XXXX enum bool not found!!
#
# Indices of types declared in this module
@@ -302,27 +309,27 @@ _classdeclarations = {
}
_propdeclarations = {
- 'iwnd' : information_window,
- 'cdis' : disk,
- 'asmo' : modification_date,
- 'ascd' : creation_date,
- 'pnam' : name,
+ 'posn' : position,
+ 'kind' : kind,
+ 'ptsz' : size,
+ 'phys' : physical_size,
+ 'dwnd' : content_space,
+ 'pbnd' : bounds,
+ 'issl' : selected,
'labi' : label_index,
- 'ID ' : id,
- 'iimg' : icon,
+ 'dscr' : description,
+ 'comt' : comment,
+ 'ctnr' : container,
'pidx' : index,
- 'dwnd' : content_space,
+ 'iimg' : icon,
+ 'ID ' : id,
'cwin' : window,
- 'comt' : comment,
- 'dscr' : description,
+ 'pnam' : name,
+ 'ascd' : creation_date,
+ 'cdis' : disk,
+ 'asmo' : modification_date,
'asdr' : folder,
- 'issl' : selected,
- 'pbnd' : bounds,
- 'ctnr' : container,
- 'phys' : physical_size,
- 'ptsz' : size,
- 'kind' : kind,
- 'posn' : position,
+ 'iwnd' : information_window,
}
_compdeclarations = {