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