Allow simple extension commands notified by server in CAPABILITY response. Assumes command is legal in current state. (typ, [data]) = .xatom(name, arg, ...) Returns response appropriate to extension command 'name'.
(self, name, *args)
| 1022 | |
| 1023 | |
| 1024 | def xatom(self, name, *args): |
| 1025 | """Allow simple extension commands |
| 1026 | notified by server in CAPABILITY response. |
| 1027 | |
| 1028 | Assumes command is legal in current state. |
| 1029 | |
| 1030 | (typ, [data]) = <instance>.xatom(name, arg, ...) |
| 1031 | |
| 1032 | Returns response appropriate to extension command 'name'. |
| 1033 | """ |
| 1034 | name = name.upper() |
| 1035 | #if not name in self.capabilities: # Let the server decide! |
| 1036 | # raise self.error('unknown extension command: %s' % name) |
| 1037 | if not name in Commands: |
| 1038 | Commands[name] = (self.state,) |
| 1039 | return self._simple_command(name, *args) |
| 1040 | |
| 1041 | |
| 1042 |
nothing calls this directly
no test coverage detected