[Zope-Checkins] CVS: Zope/skel/bin - zopeservice.py.in:1.1.2.3

Chris McDonough chrism at plope.com
Tue Jul 13 12:13:09 EDT 2004


Update of /cvs-repository/Zope/skel/bin
In directory cvs.zope.org:/tmp/cvs-serv19390/bin

Modified Files:
      Tag: Zope-2_7-branch
	zopeservice.py.in 
Log Message:
Fix from Andy:

he 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. 


=== Zope/skel/bin/zopeservice.py.in 1.1.2.2 => 1.1.2.3 ===
--- Zope/skel/bin/zopeservice.py.in:1.1.2.2	Mon Aug 25 17:30:46 2003
+++ Zope/skel/bin/zopeservice.py.in	Tue Jul 13 12:13:09 2004
@@ -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