I playing with Python support in Mahogany but I can't get it working...

Initial message "Welcome, ... to the wonderful world of Python..." is
displaying but when I try to attach one of example functions e. g. to open
folder action I get errors.

I was trying attach "callback_func" from Minit.py to open folder action and
I get:

14:15:49: Status: Mailbox "New Mail" opened.
14:15:49: Error: Traceback (most recent call last):
  File "C:\Program Files\Mahogany\Python\Minit.py", line 62, in callback_func
    msg = "This is a Python Callback Function!\nThe argument is: " + arg
TypeError: cannot concatenate 'str' and 'MailFolderPtr' objects

14:15:49: Error: Calling Python function "callback_func" failed.

When I try "OpenFolderCallback", I get:

14:14:14: Status: Mailbox "New Mail" opened.
14:14:14: Error: TypeError:OpenFolderCallback() takes exactly 2 arguments (1 given)

14:14:14: Error: Calling Python function "Minit.OpenFolderCallback" failed.

Can somebody give me a hint how to call Python functions correctly, please?
I was trying to type function name into Preferences -> Python -> "Folder
open callback" box in various ways (callback_func, callback_func(),
"callback_func",...) but none was working.

Thanks

Robert.


-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to