PythonWin Outlook connection

michael montagne montagne at boora.com
Fri May 11 20:41:54 EDT 2001


More info for the interested:

If I do a dir on the folder object on my machine:
>>> dir(folder)
['_builtMethods_', '_enum_', '_lazydata_', '_mapCachedItems_', '_oleobj_',
'_olerepr_', '_unicode_to_string_', '_username_']

If I do a dir on the folder object on the bad machine:
>>> dir(folder)
['_oleobj_']

-mjm


"michael montagne" <montagne at boora.com> wrote in message
news:mp_K6.47333$FS3.505691 at sjc-read.news.verio.net...
> The following sequence works on my machine during development but when I
> install on another computer(the actual user) I am greeted with the error
at
> the bottom.  I ran the COM MakePy Utility for Outlook.  We both have the
> same version of MSOffice.
>
> >>> import win32com.client
> >>> objOut = win32com.client.dynamic.Dispatch("Outlook.Application.9")
> >>> objNamespace=objOut.GetNamespace("Mapi")
> >>> objNamespace.Logon()
> >>> folder=objNamespace.Folders.Item("Public Folders").Folders.Item("All
> Public folders").Folders.Item("Proj").Folders.Item("98011 UC
> Davis").Folders.Item("UCD RFI's")
> >>> objemail=folder.Items(1)
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> AttributeError: _Items instance has no __call__ method
>
>
>
>





More information about the Python-list mailing list