[Patches] [ python-Patches-702463 ] AE Enum and Attribute support fixes

SourceForge.net noreply@sourceforge.net
Wed, 12 Mar 2003 12:14:47 -0800


Patches item #702463, was opened at 2003-03-12 11:14
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=702463&group_id=5470

Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Donovan Preston (dsposx)
Assigned to: Jack Jansen (jackjansen)
Summary: AE Enum and Attribute support fixes

Initial Comment:
This patch contains two somewhat unrelated minor patches to python's AppleEvent infrastructure. Details:

1) Currently, Enum parameters are encoded as four character strings in the actual AppleEvent. The vast majority of applications and events seem to be able to handle this, but to be correct and support those applications that don't, we should simply wrap the four-character-code string with an Enum before encoding the event. This is the fix at the bottom of the attached patch.

2) Currently, AppleEvent attributes which may be passed to any of the methods generated by gensuitemodule are encoded using AEPutParamDesc. This has probably not been an issue because there are almost no cases where Python code wants to attach attributes to an AppleEvent. However, to be correct, attributes should be attached to an AppleEvent using AEPutAttributeDesc.

Donovan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=702463&group_id=5470