[zopeorg-checkins] CVS: NZO_SiteLayout - ZopeCtl.py:1.2

Tres Seaver tseaver at zope.com
Mon Apr 29 16:59:21 EDT 2002


Update of /cvs-zopeorg/NZO_SiteLayout
In directory cvs.zope.org:/tmp/cvs-serv23940

Modified Files:
	ZopeCtl.py 
Log Message:
 - Hack command line to put 'default' storage in var/ZEOStorage.

=== NZO_SiteLayout/ZopeCtl.py 1.1 => 1.2 ===
                 result.append( self._buildStringOption( short_name, value ) )
 
+        default_storage = None
+
         for name in self._storage[ 'names' ]:
             module, attribute = self._storage[ name ]
-            value = '%s=%s:%s' % ( name, module, attribute )
-            #result.append( self._buildStringOption( 'S', value ) )
+            if name == '':
+                default_storage = attribute
+            else:
+                value = '%s=%s:%s' % ( name, module, attribute )
+                result.append( self._buildStringOption( 'S', value ) )
+
+        if default_storage:
+            result.append( default_storage )
 
         return ' '.join( result )
 






More information about the zopeorg-checkins mailing list