aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/util.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-09-03 09:36:56 -0400
committerW. Trevor King <wking@tremily.us>2012-09-03 09:36:56 -0400
commit13e6d6ecfef7ff68fa24c2744e0f6621d6cf3491 (patch)
treec2e4ba0adf69e0e5391e0db85c2ada20cc0683b2 /libbe/command/util.py
parent7c1db6f55380c3511ac305a6fe3c16315216b527 (diff)
downloadbugseverywhere-13e6d6ecfef7ff68fa24c2744e0f6621d6cf3491.tar.gz
command:serve_commands: allow unspecified parameters (use defaults).
Also raise UnknownCommand if there is no `command` key in the posted dict (malformed request). With the new code, you can run commands with: $ wget --post-data='command: list' http://localhost:8000/run/ instead of having to go through and specify all the parameters explicitly. This will make the command server more robust for use with older clients (who may not know about all the parameters that the server knows about). Parameters sent by the client that the server does not know about are silently ignored.
Diffstat (limited to 'libbe/command/util.py')
0 files changed, 0 insertions, 0 deletions