Howdy,

I need to import  ~ 14,000 filename/keyword sets from a .csv
file into Canto Cumulus, an image management app. and I'm a
bit over my head with this stuff.

If the following is enough to provide some direction, I'd
appreciate it.

here's my code;

import win32com.client
from win32com.client import gencache
gen_mod = 
win32com.client.gencache.EnsureModule('{8C025610-7F9C-11D2-A604-0000C05CF0F8}', 0, 1, 
0)
dis_mod = win32com.client.Dispatch("Cumulus5.Application")
gen_app = gen_mod.Application("Cumulus5.Application")

>>> gen_mod
<module 'win32com.gen_py.8C025610-7F9C-11D2-A604-0000C05CF0F8x0x1x0' from 
'c:\python21\win32com\gen_py\8C025610-7F9C-11D2-A604-0000C05CF0F8x0x1x0.pyc'>

>>> dis_mod
<COMObject Cumulus5.Application>

>>> gen_app
<win32com.gen_py.Canto Cumulus 5 OLE Automation.Application>

>>> gen_app.default_interface.Activate()
Traceback (most recent call last):  File "<interactive input>", line 1, in ?TypeError: 
unbound method Activate() must be called with instance as first argument
Evidently I have the class, not an instance, how do I get an instance?

dis_mod.Activate()
The Cumulus app starts up
I'd prefer to use the classes in the gen_py module.

Thanks,
Kent


-- Kent Tenney, [EMAIL PROTECTED] on 07/13/2001

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to