[Zope-Checkins] SVN: Zope/trunk/skel/bin/zopeservice.py.in Fix from
Andy:
Chris McDonough
chrism at plope.com
Tue Jul 13 12:12:42 EDT 2004
Log message for revision 26447:
Fix from Andy:
The code for generating the
Zope service name doesn't lower case the names. Being windows this means
c:\Zope and C:\Zope are the same files and hence valid instance homes.
However their hashes are different meaning you can't find the service
name without knowing the exact case.
Changed:
U Zope/trunk/skel/bin/zopeservice.py.in
-=-
Modified: Zope/trunk/skel/bin/zopeservice.py.in
===================================================================
--- Zope/trunk/skel/bin/zopeservice.py.in 2004-07-13 16:11:36 UTC (rev 26446)
+++ Zope/trunk/skel/bin/zopeservice.py.in 2004-07-13 16:12:42 UTC (rev 26447)
@@ -99,7 +99,7 @@
from nt_svcutils.service import Service
-servicename = 'Zope_%s' % str(hash(INSTANCE_HOME))
+servicename = 'Zope_%s' % str(hash(INSTANCE_HOME.lower()))
class InstanceService(Service):
start_cmd = '"%s" "%s" -C "%s"' % (PYTHONW, ZOPE_RUN, CONFIG_FILE)
More information about the Zope-Checkins
mailing list