(self, method, params)
| 1043 | handlers['shutdown'] = HandleShutdown |
| 1044 | |
| 1045 | def _handle_request(self, method, params): |
| 1046 | if (self.handlers.has_key(method)): |
| 1047 | return self.handlers[method](self, params) |
| 1048 | else: |
| 1049 | raise APIError(20, 'Invalid method: %s' % method) |
| 1050 | |
| 1051 | def _dispatch(self, method, params): |
| 1052 | self.cookies = [] |