From: Jack Jansen Date: Fri, 22 Jan 1999 13:23:12 +0000 (+0000) Subject: In unpackevent, get the direct object (----) before asking for missed parameters. X-Git-Tag: v1.5.2b2~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90c3c164e0846eb673012cd2eb14357d7e3a71ea;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Mac/Lib/lib-toolbox/aetools.py b/Mac/Lib/lib-toolbox/aetools.py index dde82b59d8f1..792cb728fa69 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