[Zodb-checkins] CVS: Zope/lib/python/zdaemon - zdrun.py:1.13.16.7

Fred Drake cvs-admin at zope.org
Mon Oct 27 10:52:13 EST 2003


Update of /cvs-repository/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv15903

Modified Files:
      Tag: Zope-2_7-branch
	zdrun.py 
Log Message:
support but don't require the -S option


=== Zope/lib/python/zdaemon/zdrun.py 1.13.16.6 => 1.13.16.7 ===
--- Zope/lib/python/zdaemon/zdrun.py:1.13.16.6	Fri Oct 24 17:32:59 2003
+++ Zope/lib/python/zdaemon/zdrun.py	Mon Oct 27 10:52:12 2003
@@ -91,11 +91,14 @@
     positional_args_allowed = 1
     logsectionname = "runner.eventlog"
     program = None
-    schemafile = None
 
     def __init__(self):
         RunnerOptions.__init__(self)
-        self.add("schemafile", short="S:", default="schema.xml")
+        self.add("schemafile", short="S:", default="schema.xml",
+                 handler=self.set_schemafile)
+
+    def set_schemafile(self, file):
+        self.schemafile = file
 
     def realize(self, *args, **kwds):
         RunnerOptions.realize(self, *args, **kwds)




More information about the Zodb-checkins mailing list