chiark
/
gitweb
/
~mdw
/
chopwood
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6ec9a
)
service.py: Add missing `_describe' method for CommandRemoteService.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 24 May 2014 13:01:04 +0000
(14:01 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 24 May 2014 21:58:47 +0000
(22:58 +0100)
service.py
patch
|
blob
|
blame
|
history
diff --git
a/service.py
b/service.py
index 8b1c87b3f7ed4f214d64ad4a101015bdc20b688b..52debfbfe1670ac33605a2ba9df827710dc7e325 100644
(file)
--- a/
service.py
+++ b/
service.py
@@
-335,6
+335,10
@@
class CommandRemoteService (BasicRemoteService):
me._clear = clear
me._map = dict(u = user)
+ def _describe(me):
+ """Description of the remote service."""
+ return "`%s' command service (%s)" % (me.name, ' '.join(me._default))
+
def _subst(me, c):
"""Return the substitution for the placeholder `%C'."""
return me._map.get(c, c)