Rachel, Glad you got it working! One thing that occurred to me is that your imported module probably will not auto refresh, except when the code in in the GlobalModules directory is changed. I think the auto refresh thing just checks the file dates on the files in the product's directory. The solutions that occur to me are: 1.) Move your code into that directory so that Zope sees it all as part of the same product (maybe a symbolic link would work for this?) -- 2.) write a script that "touches" the wrapper file whenever you save changes to your other code. -- 3.) edit the Zope code such that it auto refreshes every time, rather than just when a file has changed (this would cause things to run slower). -- or 4.) You could just click the refresh button every time before you test. 4.) might just be the best option, as this will also display errors in your code when it can not refresh. When Zope fails to auto refresh, do to an error in code, it just happily runs the old code - this can lead to some frustration when you get used to it refreshing for you, and then can not understand why the new code you just wrote isn't doing anything new. Cheers. --Sean
Message: 13 Date: Sat, 31 Jan 2004 16:52:35 +0000 From: Rachel Willmer <rachel_lists@willmer.org> Subject: Re: [Zope] importing an existing python module into Zope python script? FIXED! To: Dieter Maurer <dieter@handshake.de> Cc: zope@zope.org Message-ID: <401BDD53.1000405@willmer.org> Content-Type: text/plain; charset=us-ascii; format=flowed
Dieter Maurer wrote:
What is the "GlobalModules" product?
Products usually do not live in "lib/python" but in a "Products" folder.
Only products can be refreshed.
GlobalModules is the name of the example product used in the README file you referred me to above.
It is in the lib/python/Products directory (not lib/python)(sorry, careless typing on my part)
Right, thanks for all your help. I've got this working now...
It was a combination of careless typing, browser not refreshing when I thought it was, zope not refreshing when I thought it was, and just staring at the problem too hard for too long...
I'd like to write this up to add to the documentation to help the next newbie that hits this problem, should I just add something into the Zope Book (can I?) or is there a more formal entry submission process?
Thanks again for your help Rachel
------------------------------
Message: 14 Date: Sat, 31 Jan 2004 16:53:22 +0000 From: John Poltorak <jp@warpix.org> Subject: [Zope] Virtual hosts To: zope@zope.org Message-ID: <20040131165322.G81@warpix.org> Content-Type: text/plain; charset=us-ascii
Is it possible to use Zope with virtual hosts where each host has a different set of access controls?
-- John
------------------------------
_______________________________________________ Zope maillist - Zope@zope.org
End of Zope Digest, Vol 6, Issue 53 ***********************************