(self, cmd, argv)
| 71 | |
| 72 | |
| 73 | def dispatch_command(self, cmd, argv): |
| 74 | method_name = "DO_" + cmd |
| 75 | try: |
| 76 | method = getattr(self, method_name) |
| 77 | except AttributeError: |
| 78 | print "Error: Missing implementation for {0}, commans '{1}' ignored".format(method_name, cmd) |
| 79 | return |
| 80 | method(argv) |
| 81 | |
| 82 | |
| 83 | def DO_BUTTONS(self, argv): |