[Pythonmac-SIG] Re: AppleEvent

Alfonso Baciero alczj@yahoo.es
Fri, 27 Sep 2002 09:43:16 +0200 (CEST)


> Id did the simple test code:
> 
> import Entourage
> #talker = Entourage.Entourage()
> #talker.activate()
> fld = Entourage.folder("Spam")
> wnd = Entourage.windows(fld)
> #messlist = wnd.content()
> messlist = Entourage.current_messages(fld)
> #messlist = talker.get(Entourage.message(fld))
> for mess in messlist:
>   headers = mess.headers()
> 
> 
> 1) With line 2 and 3 uncommented I get the following traceback.
> 
> [...]

The problem about point 1) is that class 
Entourage_Mail_and_News_Sui_Events (in the 
file "Entourage_Mail_and_News_Sui.py" 
in the folder Entourage) defines a method 
called send. This method overloads 
the method send in class TalkTo:

In file "Entourage_Mail_and_News_Sui.py" :

[...]
class Entourage_Mail_and_News_Sui_Events:
	[...]	
	def send(self, _object=None, _attributes={}, **_arguments):
[...]

A hack is to change the name of the method in class 
Entourage_Mail_and_News_Sui_Events, for example, 
instead of "send", "sendmessage",

Alfonso.



_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es