[Zope] z2.py

2001-01-25 Thread Wolfgang Strobl

While analyzing a problem, I had a quick look into z2.py, and 
frankly, I don't understand the logic behind the so called "required 
path hackery for the win32 binary distribution".

This hack unnecessarily makes the z2.py location dependant. The 
installer rewrites the z2.py source, inserting the absolute path of 
the zope home into a variable, from where it is used in getting 
some python folders in front of the python path. 

IMHO, this is nonsense.  A few lines down in z2.py, the absolute 
path to the zope home is constructed from sys.arg and os.cwd 
anyway.  Why not use that?

I removed the superflous stuff from the hack and moved the 
remaining lines down a few lines, now it comes right after the 
definition of  'here' and reads:

import sys
sys.path.insert(0, '%s/bin/lib' % here)
sys.path.insert(1, '%s/bin/lib/plat-win' % here)
sys.path.insert(2, '%s/bin/lib/win32' % here)
sys.path.insert(3, '%s/bin/lib/win32/lib' % here)

Works like a charm, both from a service (on win2000) and 
standalone.

ws


___
Zope maillist  -  [EMAIL PROTECTED]
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] z2.py -i

2000-12-11 Thread [EMAIL PROTECTED]

hello all
can anybody shed some light on the "-i" option in z2.py.  according to the 
help 

-i n
 
Set the interpreter check interval. This integer value
determines how often the interpreter checks for periodic things
such as thread switches and signal handlers. The Zope default
is 120, but you may want to experiment with other values that
may increase performance in your particular environment.

can anybody explain in plain english please.  if i decrease the number, 
what'll happen?  if i increase it?  what the heck is it anyway?

dummy, that's me..

tia
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!



___
Zope maillist  -  [EMAIL PROTECTED]
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] Z2.py DNS_IP (name resolution)

2000-08-15 Thread Hugo Ramos

Yellow ppl,

I inserted my local machine IP address in DNS_IP section of Z2.py as I used
to in version 2.1.6 (now running 2.2.1b1). This used to work for me and
instead of numbers I would get resolved names in the Z2.log.

Since I upgraded to 2.2.0 and now 2.2.1b1 I only get numbers. DNS_IP section
of Z2.py is not working properly anymore...

anyone??

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
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 )