service.py: Fix the RemoteService `_mkcmd' protocol.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 24 May 2014 13:02:32 +0000 (14:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 24 May 2014 21:58:50 +0000 (22:58 +0100)
commitc8d6d67be719368ddcd4c9e94866d4a42fabb952
tree71026e4d8529c364b8c9cfd6955ddee707c47611
parent7789d380771f23a87b12487219a8ea24da5ef886
service.py: Fix the RemoteService `_mkcmd' protocol.

The CommandRemoteService implementation was completely wrong.
Substitutions need know the user name in question, which isn't available
until the actual operation is invoked; so this needs to be passed
through to `_mkcmd'.

Therefore, we introduce a new argument to `_run', which is simply passed
on to `_mkcmd', and adjust implementations to cope.
service.py