zopectl: interactive mode broken (Windows only)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Zope 2 |
Fix Released
|
Low
|
ChrisW |
Bug Description
On trunk (and I guess also on the 2.12 branch) zopectl exits after most commands, e.g. after start, restart and stop. This is because do_windows always returns a true value. AFAICS only 'install' needs that return value. Here as a quick and dirty fix, but I'm sure there is a cleaner solution:
Index: src/Zope2/
=======
--- src/Zope2/
+++ src/Zope2/
@@ -83,7 +83,7 @@
)
- return err,InstanceService
+ return (command == 'install') and (err, InstanceService)
return inner
ChrisW (chris-simplistix) wrote : | #1 |
yuppie (yuppie3) wrote : | #2 |
By "interactive mode" I mean what you get if you just call zopectl without any command. In that case
zopectl> start
should return to the zopectl prompt and not to the command line.
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 461446] Re: zopectl: interactive mode broken (Windows only) | #3 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ChrisW wrote:
> What do you mean by "exits"?
> I'd expect:
>
> $ zopectl start
>
> ...to return to the command line. What are you expecting?
>
> Please do not apply the patch above.
The change which force exits from the "zopectl" shell is an unacceptable
breakage: in making it work on Windows, the change *breaks* everyday
usage on Unix.
Tres.
- --
=======
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr
5MEAoNDnAwP7Jru
=GBHN
-----END PGP SIGNATURE-----
yuppie (yuppie3) wrote : | #4 |
@ Tres: ??? What are you talking about? How did the changes ChrisW made or my patch break things on Unix? AFAICS everything works fine on Unix.
Tres Seaver (tseaver) wrote : | #5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yuppie wrote:
> @ Tres: ??? What are you talking about? How did the changes ChrisW made
> or my patch break things on Unix? AFAICS everything works fine on Unix.
If this doesn't affect Unix systems, then it isn't really a regression,
as zopectl hasn't worked properly on Windows since Zope 2.2 (I think).
Tres.
- --
=======
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr
CgoAoMszUJXG/
=Ux1D
-----END PGP SIGNATURE-----
yuppie (yuppie3) wrote : | #6 |
Well. I fixed some small Windows issues before the 2.12.0 release and (at least for me) most zopectl commands are working with Zope 2.12.0. So I think this is a regression compared to Zope 2.12.0.
ChrisW (chris-simplistix) wrote : | #7 |
Fix on 2.12 branch in r105393:
C:\Zope\
program: C:\zope\
daemon manager not running
zopectl> install
Installing service Zope-598538646
Service installed
zopectl> start
Starting service Zope-598538646
zopectl> stop
Stopping service Zope-598538646
zopectl> remove
Removing service Zope-598538646
Service removed
zopectl> quit
daemon manager not running
The "daemon manager not running" annoys me, I wonder if that can be fixed too?
Changed in zope2: | |
assignee: | nobody → ChrisW (chris-simplistix) |
importance: | Undecided → Low |
status: | New → In Progress |
ChrisW (chris-simplistix) wrote : | #8 |
zopectl status fixed for Windows on Zope 2.12 branch in r105394
ChrisW (chris-simplistix) wrote : | #9 |
Merged to Zope 2.12 trunk in r105396
Changed in zope2: | |
status: | In Progress → Fix Committed |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
What do you mean by "exits"?
I'd expect:
$ zopectl start
...to return to the command line. What are you expecting?
Please do not apply the patch above.