Design Q: Product vs. External Methods
Hi Zope-Experts, one question concerning design using zope: Assume, I have a bunch of python modules / scripts, which I want to make accessible via zope. Is it better to use the external methods to bring the python modules into zope or should I make a Product out of my python modules. I also would like to know, if it is possible to update a bunch of external method zope objects simultaneously, or do I have to click 'edit' on every single external method object after editing the corresponding python method? This would be a bit tedious with 30 or more external methods... Thanks a lot for any hints! Tilo
tilo.schwarz@daimlerchrysler.com wrote:
Assume, I have a bunch of python modules / scripts, which I want to make accessible via zope. Is it better to use the external methods to bring the python modules into zope or should I make a Product out of my python modules.
Well, do the python modules contain methods or classes? If classes, turn them into a Zope products. IF methods, then use them as external methods.
I also would like to know, if it is possible to update a bunch of external method zope objects simultaneously, or do I have to click 'edit' on every single external method object after editing the corresponding python method? This would be a bit tedious with 30 or more external methods...
Yeah, that is a pain, despite assurances that you shouldn't need to do that :-S probably the quickest way would just be to restart the Zope server... cheers, Chris
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them. jens on 1/15/01 6:04, tilo.schwarz@daimlerchrysler.com at tilo.schwarz@daimlerchrysler.com wrote:
I also would like to know, if it is possible to update a bunch of external method zope objects simultaneously, or do I have to click 'edit' on every single external method object after editing the corresponding python method?
Jens Vagelpohl wrote:
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them.
jens
That hasn't been my experience, but maybe I'm mistaken :-S Chris
On Mon, 15 Jan 2001, Chris Withers wrote:
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them.
That hasn't been my experience, but maybe I'm mistaken :-S
I can assure it is. I run zope.net.ru in debug mode, and did debugging of an External Method that draw the left column. After I modified the source file Zope reread it, sure. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann wrote:
On Mon, 15 Jan 2001, Chris Withers wrote:
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them.
That hasn't been my experience, but maybe I'm mistaken :-S
I can assure it is. I run zope.net.ru in debug mode, and did debugging of an External Method that draw the left column. After I modified the source file Zope reread it, sure.
Fair enough then :-) Chris
participants (4)
-
Chris Withers -
Jens Vagelpohl -
Oleg Broytmann -
tilo.schwarzï¼ daimlerchrysler.com