zoperunner section in zope.conf doesn't work

Bug #1058049 reported by Gottfried Ganßauge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Gottfried Ganßauge (gottfried-ganssauge-h) wrote :
Changed in zope2:
milestone: none → 2.13.19
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.