[Zope] Python + COM (from external method)

Steinar Rune Eriksen steinar@orion.no
Fri, 11 Aug 2000 16:00:08 +0200


That worked. Thanks

> -----Original Message-----
> From:	Phil Harris [SMTP:phil.harris@zope.co.uk]
> Sent:	Freitag, 11. August 2000 14:06
> To:	Steinar Rune Eriksen; zope@zope.org
> Subject:	Re: [Zope] Python + COM (from external method)
> 
> Steinar,
> 
> Did you call pythoncom.CoInitialize()?
> 
> If not you need to.
> 
> hth
> 
> Phil
> phil.harris@zope.co.uk
> 
> 
> ----- Original Message ----- 
> From: "Steinar Rune Eriksen" <steinar@orion.no>
> To: <zope@zope.org>
> Sent: Friday, August 11, 2000 12:49 PM
> Subject: [Zope] Python + COM (from external method)
> 
> 
> > How come this fails...
> > ------------------------------------------
> > import win32com.client
> > oOleObj = win32com.client.Dispatch("DSOleFile.PropertyReader")
> > --------------------------------------------------
> > 
> > when run from Zope (within and External Method) when it works from
> Python
> > standalone on the same machine ?
> > 
> > 
> > SRE
> > 
> > 
> > 
> > 
> > 
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please notify
> > the system manager.
> > 
> > This footnote also confirms that this email message has been swept by
> > MIMEsweeper for the presence of computer viruses.
> > 
> > Admin
> > Orion System AS
> > **********************************************************************
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Admin
Orion System AS
**********************************************************************