summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-01-22 13:23:12 +0000
committerJack Jansen <jack.jansen@cwi.nl>1999-01-22 13:23:12 +0000
commit90c3c164e0846eb673012cd2eb14357d7e3a71ea (patch)
treea4dd44e7590bd5b5c70aea4ce40081e570dfa47f
parentd61f92bab39a706ab954199ab39bc72a67bbdbdd (diff)
downloadcpython-git-90c3c164e0846eb673012cd2eb14357d7e3a71ea.tar.gz
In unpackevent, get the direct object (----) before asking for missed parameters.
The documentation is unclear on this, but the old implementation caused problems with Default Folder.
-rw-r--r--Mac/Lib/lib-toolbox/aetools.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/aetools.py b/Mac/Lib/lib-toolbox/aetools.py
index dde82b59d8..792cb728fa 100644
--- a/Mac/Lib/lib-toolbox/aetools.py
+++ b/Mac/Lib/lib-toolbox/aetools.py
@@ -58,6 +58,13 @@ def missed(ae):
def unpackevent(ae):
parameters = {}
+ try:
+ dirobj = ae.AEGetParamDesc('----', '****')
+ except AE.Error:
+ pass
+ else:
+ parameters['----'] = unpack(dirobj)
+ del dirobj
while 1:
key = missed(ae)
if not key: break