I new to Zope. I'm attempting to access Python modules from within Zope. These modules are programs we've written, that import stuff like wxWindows or our .py modules. The "Extensions" folder is not the thing to use, apparently. I'm not clear if adding an "External Method" or "Script" is the thing to do. None of the books we have talk clearly about how to do this. I need some step-by-step directions with this. Any suggestions? Thanks! Mark
You can import modules into Script (Python) objects, use them External Methods or even wrap a product around them. To start off I would use a few External Methods. Make sure your modules are in your PYTHONPATH or can be imported. And why would you want wxWindows? Cheers. -- Andy McKay. ----- Original Message ----- From: <MarkM@Yogananda-SRF.org> To: <zope@zope.org> Sent: Wednesday, January 09, 2002 12:23 PM Subject: [Zope] Using Python Modules with Zope
I new to Zope. I'm attempting to access Python modules from within Zope. These modules are programs we've written, that import stuff like wxWindows or our .py modules. The "Extensions" folder is not the thing to use, apparently. I'm not clear if adding an "External Method" or "Script" is the thing to do. None of the books we have talk clearly about how to do this. I need some step-by-step directions with this. Any suggestions?
Thanks! Mark
I wonder if you wound better call Zope fom your wxWindows app ?? ----- Original Message ----- From: "Andy McKay" <andym@ActiveState.com> To: <MarkM@Yogananda-SRF.org>; <zope@zope.org> Sent: Wednesday, January 09, 2002 11:08 PM Subject: Re: [Zope] Using Python Modules with Zope
You can import modules into Script (Python) objects, use them External Methods or even wrap a product around them. To start off I would use a few External Methods. Make sure your modules are in your PYTHONPATH or can be imported.
And why would you want wxWindows?
Cheers. -- Andy McKay.
----- Original Message ----- From: <MarkM@Yogananda-SRF.org> To: <zope@zope.org> Sent: Wednesday, January 09, 2002 12:23 PM Subject: [Zope] Using Python Modules with Zope
I new to Zope. I'm attempting to access Python modules from within Zope. These modules are programs we've written, that import stuff like wxWindows or our .py modules. The "Extensions" folder is not the thing to use, apparently. I'm not clear if adding an "External Method" or "Script" is the thing to do. None of the books we have talk clearly about how to do this. I need some step-by-step directions with this. Any suggestions?
Thanks! Mark
_______________________________________________ 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 )
On Wednesday 09 January 2002 12:23 pm, MarkM@Yogananda-SRF.org wrote:
These modules are programs we've written, that import stuff like wxWindows or our .py modules.
The only way to solve it: use External Method. Write Your class, put / import all what You need, import it in Zope and use it. In the same way, You can use / call all Zope objects in External Method as well (sure, if You need it). P.S. I'm curios: why You need wxWindows in Zope? 8-) -- Bogdan M.Maryniuck
participants (4)
-
Andy McKay -
Bogdan M.Maryniuck -
MarkM@Yogananda-SRF.org -
Robert Rottermann