|
From: Kevin A. <al...@se...> - 2001-08-23 02:07:38
|
I added logic to the code to disable the Import Outlook menu item if either
the win32 libraries or Outlook is not found. That should solve the problem.
ka
> -----Original Message-----
> From: pyt...@li...
> [mailto:pyt...@li...]On Behalf Of Neil
> Hodgson
> Sent: Wednesday, August 22, 2001 6:04 PM
> To: pyt...@li...
> Subject: Re: [Pythoncard-users] addresses sample
>
>
> Kevin Altis:
> > The addresses sample can now import Outlook contacts. I have no
> idea what
> > kinds of errors will occur when 'addresses' is run on a box without the
> > win32 and COM extensions (*nix), nor do I know what happens when Outlook
> is
> > not installed on a machine, so please let me know and I'll add more
> > try/except blocks.
>
> I only have Outlook Express and see:
>
> attempting to load Outlook
> unable to load Outlook
> loading records...
> Traceback (most recent call last):
> File "G:\pyc\PythonCardPrototype\menu.py", line 219, in doMenu
> item.notifyEventListeners( event )
> File "G:\pyc\PythonCardPrototype\event.py", line 266, in
> notifyEventListeners
> listener.eventOccurred( event )
> File "G:\pyc\PythonCardPrototype\dispatch.py", line 70, in eventOccurred
> handler.getFunction()( self._scriptable, aEvent.getSource(), aEvent )
> File "addresses.py", line 179, in on_fileImportOutlook_command
> oOutlook.loadRecords()
> File "G:\pyc\PythonCardPrototype\samples\addresses\outlook.py", line 45,
> in lo
> adRecords
> onMAPI = self.oOutlookApp.GetNamespace("MAPI")
> AttributeError: MSOutlook instance has no attribute 'oOutlookApp'
>
> Neil
>
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> http://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
|