Don't reject unknown remote commands
authorJack Miller <jack@codezen.org>
Fri, 17 Oct 2014 18:12:28 +0000 (13:12 -0500)
committerJack Miller <jack@codezen.org>
Fri, 17 Oct 2014 18:12:28 +0000 (13:12 -0500)
Daemon plugins can implement them.

canto_curses/guibase.py

index ad1d0ce..70d388f 100644 (file)
@@ -194,7 +194,7 @@ class GuiBase(CommandHandler):
         remote_cmds = [ "help", "addfeed", "listfeeds", "delfeed",
                 "force-update", "config", "one-config", "export",
                 "import", "kill" ]
-        return (remote_cmds, lambda x : (x in remote_cmds, x))
+        return (remote_cmds, lambda x : (True, x))
 
     def _remote_argv(self, argv):
         loc_args = self.callbacks["get_var"]("location")