summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-03-05 21:16:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-03-05 21:16:06 (GMT)
commit5b7338519507e984778355d1628ec65bfa59bb39 (patch)
treed4a0dc9511f072926fb7037b3ae9ea7cf5112d91 /Lib
parent6a9a3292f5152cf4c29c6899c123f1fa56eafb77 (diff)
downloadcpython-5b7338519507e984778355d1628ec65bfa59bb39.zip
cpython-5b7338519507e984778355d1628ec65bfa59bb39.tar.gz
cpython-5b7338519507e984778355d1628ec65bfa59bb39.tar.bz2
Two ancient and obscure bugs found and fixed by Donovan Preston (these
could be responsible for various unexplained problems with Python/OSA interaction over the years): - Enum values were passed as their string counterparts. Most applications don't seem to mind this, but some do (InDesign). - Attributes have never worked (!), as they were incorrectly passed as parameters. Apparently nobody uses them much:-)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/plat-mac/aetools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/aetools.py b/Lib/plat-mac/aetools.py
index 79d6958..8ac293d 100644
--- a/Lib/plat-mac/aetools.py
+++ b/Lib/plat-mac/aetools.py
@@ -92,7 +92,7 @@ def packevent(ae, parameters = {}, attributes = {}):
for key, value in parameters.items():
packkey(ae, key, value)
for key, value in attributes.items():
- packkey(ae, key, value)
+ ae.AEPutAttributeDesc(key, pack(value))
#
# Support routine for automatically generated Suite interfaces
@@ -116,7 +116,7 @@ def enumsubst(arguments, key, edict):
v = arguments[key]
ok = edict.values()
if edict.has_key(v):
- arguments[key] = edict[v]
+ arguments[key] = Enum(edict[v])
elif not v in ok:
raise TypeError, 'Unknown enumerator: %s'%v