[Zodb-checkins] CVS: Zope/lib/python/zdaemon - zdrun.py:1.18
Fred Drake
cvs-admin at zope.org
Mon Oct 27 10:58:09 EST 2003
Update of /cvs-repository/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv16869
Modified Files:
zdrun.py
Log Message:
support but don't require the -S option
=== Zope/lib/python/zdaemon/zdrun.py 1.17 => 1.18 ===
--- Zope/lib/python/zdaemon/zdrun.py:1.17 Fri Oct 24 17:29:44 2003
+++ Zope/lib/python/zdaemon/zdrun.py Mon Oct 27 10:58:08 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