Show More
@@ -416,19 +416,9 b' class KernelBase(Configurable):' | |||||
416 | return {'status': 'ok', 'data':{}, 'metadata':{}, 'found':False} |
|
416 | return {'status': 'ok', 'data':{}, 'metadata':{}, 'found':False} | |
417 |
|
417 | |||
418 | def history_request(self, stream, ident, parent): |
|
418 | def history_request(self, stream, ident, parent): | |
419 | # We need to pull these out, as passing **kwargs doesn't work with |
|
|||
420 | # unicode keys before Python 2.6.5. |
|
|||
421 | content = parent['content'] |
|
419 | content = parent['content'] | |
422 |
|
420 | |||
423 |
reply_content = self.do_history(content |
|
421 | reply_content = self.do_history(**content) | |
424 | content['output'], content['raw'], |
|
|||
425 | content.get('session', None), |
|
|||
426 | content.get('start', None), |
|
|||
427 | content.get('stop', None), |
|
|||
428 | content.get('n', None), |
|
|||
429 | content.get('pattern', None), |
|
|||
430 | content.get('unique', False), |
|
|||
431 | ) |
|
|||
432 |
|
422 | |||
433 | reply_content = json_clean(reply_content) |
|
423 | reply_content = json_clean(reply_content) | |
434 | msg = self.session.send(stream, 'history_reply', |
|
424 | msg = self.session.send(stream, 'history_reply', |
@@ -128,7 +128,9 b' relevant section of the :doc:`messaging spec <messaging>`.' | |||||
128 |
|
128 | |||
129 | .. method:: do_history(hist_access_type, output, raw, session=None, start=None, stop=None, n=None, pattern=None, unique=False) |
|
129 | .. method:: do_history(hist_access_type, output, raw, session=None, start=None, stop=None, n=None, pattern=None, unique=False) | |
130 |
|
130 | |||
131 | History access |
|
131 | History access. Only the relevant parameters for the type of history | |
|
132 | request concerned will be passed, so your method definition must have defaults | |||
|
133 | for all the arguments shown with defaults here. | |||
132 |
|
134 | |||
133 | .. seealso:: |
|
135 | .. seealso:: | |
134 |
|
136 |
General Comments 0
You need to be logged in to leave comments.
Login now