[zope2-tracker] [Bug 1058049] [NEW] zoperunner section in zope.conf doesn't work

Gottfried Ganßauge Gottfried.Ganssauge at haufe-lexware.com
Fri Sep 28 11:12:33 UTC 2012


Public bug reported:

In my zope.conf I have a zoperunner section like that:
<zoperunner>
program $INSTANCE/bin/runcrs
</zoperunner>

When I try to start my instance using 'zopectl fg' I get the following
traceback

Traceback (most recent call last):
  File "bin/zctl", line 119, in <module>
    Zope2.Startup.zopectl.run()
  File "/home/gotti/source/zope-2.13/zope-buildout/crs/eggs/Zope2-2.13.18-py2.7.egg/Zope2/Startup/zopectl.py", line 483, in run
    exitstatus = main()
  File "/home/gotti/source/zope-2.13/zope-buildout/crs/eggs/Zope2-2.13.18-py2.7.egg/Zope2/Startup/zopectl.py", line 442, in main
    c.onecmd(" ".join(options.args))
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/home/gotti/source/zope-2.13/zope-buildout/crs/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdctl.py", line 588, in do_fg
    self.do_foreground(arg)
  File "/home/gotti/source/zope-2.13/zope-buildout/crs/eggs/Zope2-2.13.18-py2.7.egg/Zope2/Startup/zopectl.py", line 323, in do_foreground
    command = quote_command(program)
  File "/home/gotti/source/zope-2.13/zope-buildout/crs/eggs/Zope2-2.13.18-py2.7.egg/Zope2/Startup/zopectl.py", line 99, in quote_command
    print " ".join(command)
TypeError: sequence item 0: expected string, list found

I guess the error comes from the following change:
Filename: Zope/trunk/src/Zope2/Startup/zopectl.py
Revision 115377 - (view) (download) (as text) - [select for diffs] 
Modified Mon Aug 2 13:38:05 2010 UTC (2 years, 1 month ago) by chrisw 
File length: 15486 byte(s) 
Diff to previous 110402
allow the -p option to zopectl to work again, handy for buildout-based zope instances

In that change the the self.program attribute is made into a list unconditionally even when it already is a list.
in zopeschema.xml the zoperunner/program attribute is defined as a multikey and thus is parsed as a list when set in zope.conf.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1058049

Title:
  zoperunner section in zope.conf doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1058049/+subscriptions


More information about the zope2-tracker mailing list