Skip to content

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 27, 2013

move any settings / shared objects to the tornado settings dict, rather than a mixture of tornado settings and application references, and application.ipython_app references.

Removes any reference to application / ipython_app attributes in the handlers, in favor of the tornado settings dict. These were a massive pain for anyone who might want to re-use our handlers.

This depends on PR #3011, it is actually just one commit (at this point).

@minrk minrk mentioned this pull request Mar 27, 2013
@ellisonbg
Copy link
Member

I have skimmed over this and it looks good. Let's wait until #3011 is merged, check for rebase and the I will do a final review pass.

move settings to the tornado settings dict,
rather than a mixture of tornado settings and application references,
and application.ipython_app references.

removes any reference to application / ipython_app attributes in the handlers,
in favor of the tornado settings dict.
These were a massive pain for anyone who might want to re-use our handlers.
self.read_only = self.ipython_app.read_only
self.config = self.ipython_app.config
self.use_less = self.ipython_app.use_less
self.log = log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like log didn't make it into settings. Do you think we don't need it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we never have used it in the handlers. Tornado has its own logging mechanisms, and tornado handlers should probably use them. If anything, the main app should hook up tornado's logging to our app's logging.

@ellisonbg
Copy link
Member

This looks great, merging.

minrk added 4 commits April 25, 2013 11:29
use IPython logger as first choice, fall back on tornado logger
(for use in non-IPython apps).
ellisonbg added a commit that referenced this pull request Apr 25, 2013
cleanup IPython handler settings
@ellisonbg ellisonbg merged commit dd76a23 into ipython:master Apr 25, 2013
@minrk minrk deleted the nbsettings branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
cleanup IPython handler settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants