[Zope-dev] ZopeSandBox and zope-error

Sidnei da Silva sidnei@x3ng.com
Sun, 18 May 2003 08:02:08 -0300


PieterB wrote:
> Hello,
> 
> I created a Zope sandbox based on the script of Sidnei
> http://cvs.zope.org/NZO_SiteLayout/buildout_zope_sandbox?cvsroot=Zope.org
> I've tested with Python 2.3b1 and Zope 2.7 (using CVS-head). I also
> created a Makefile which can be easily used for making, cleaning-up
> and starting/stopping Zope. The scripts are available at
> http://gewis.nl/~pieterb/zope/zopesandbox (work-in-progress). 
> 
> It would be great to have a (modular) create_sandbox script which
> would work on all (Unix) platforms and where you can easiliy select
> which version of the various products you want to use.

Eh. It was a secret, but now that you mentioned it I will need to 
reveal. I spent the whole day yesterday figuring out a way to use 
kernel's 'make menuconfig' to build custom instances of Zope. I have it 
barely working, and will certainly need help for creating the Makefile 
with the output of 'make menuconfig' (which is a file with some 
variables set, like 'CONFIG_ZOPE_26=y'). Ill put it in CVS later today, 
and lets see how far we go.

> When starting/stopping Zope I get the following error:
> 
> 	bin/zopectl stop
> 	/home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/
> 		ZServer/medusa/test/max_sockets.py:53:
> 	DeprecationWarning: integer argument expected, got float
>   	for i in range(1 + len(sl) * 0.05):
> 
> which can be easility fixed:
> 
> 	for i in range(int((1 + len(sl) * 0.05))):
> 
> After fixing that I get the following error when I start Zope:
> 
> 	/home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/App/Product.py:37:
> 	DeprecationWarning: the rotor module uses an insecure algorithm and is
> 	deprecated
>   	import os, re, zlib, marshal, rotor, cPickle
> 
> This seems harder to fix.

AFAIK, you can ignore this. Its just a warning that the library may not 
be available in the future and recommendation to use something else that 
does the same job.

> I also tried adding a Plone site, but that gives an "Action cancelled"
> error in the browser (and I don't see any logging of the problem). I'll
> also tried with Python 2.2.2, but that also fails...

Interesting. I have quite a few plone sites running on zope-head+python2.2.

> Some questions:
> - Will Python 2.3 be supported for Zope 2.7/Zope 3?
> - Should I use the HEAD or the 2.7-dev-branche for Zope 2.7?
>   (please document this in the 2.7 Wiki).

I dont think theres a 2.7 branch at this point.

> - Would others try the scrips on their platform (and possibly improve
>   it)

Of course. Just FWIW, it works in debian-powerpc. :P

-- 
Sidnei da Silva
sidnei@x3ng.com