[Zodb-checkins] CVS: Zope/lib/python/zdaemon - zdoptions.py:1.19
Fred L. Drake, Jr.
fred@zope.com
Wed, 12 Feb 2003 12:12:14 -0500
Update of /cvs-repository/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv21089
Modified Files:
zdoptions.py
Log Message:
Move config loading to a helper method.
=== Zope/lib/python/zdaemon/zdoptions.py 1.18 => 1.19 ===
--- Zope/lib/python/zdaemon/zdoptions.py:1.18 Tue Feb 11 22:57:01 2003
+++ Zope/lib/python/zdaemon/zdoptions.py Wed Feb 12 12:12:13 2003
@@ -251,8 +251,7 @@
# Process config file
self.load_schema()
try:
- self.configroot, xxx = ZConfig.loadConfig(self.schema,
- self.configfile)
+ self.load_configfile()
except ZConfig.ConfigurationError, msg:
self.usage(str(msg))
@@ -292,6 +291,10 @@
self.schemadir = os.path.dirname(__file__)
self.schemafile = os.path.join(self.schemadir, self.schemafile)
self.schema = ZConfig.loadSchema(self.schemafile)
+
+ def load_configfile(self):
+ self.configroot, xxx = ZConfig.loadConfig(self.schema,
+ self.configfile)
def load_logconf(self, sectname="eventlog"):
parts = sectname.split(".")