Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump minimum tornado version to 3.1.0 #4428

Merged
merged 2 commits into from Oct 23, 2013
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 23, 2013

The no-hidden behavior of the files handler already requires this, but instead of raising on old tornado, hidden files are just served.

Bumping the minimum version also allows much cleaner static file handler subclasses.


def initialize(self, path, default_filename=None):
if isinstance(path, basestring):
path = [path]
self.roots = tuple(
self.root = self.roots = tuple(
Copy link
Member

Choose a reason for hiding this comment

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

Why the dual names? Should there be a comment explaining this?

Copy link
Member Author

Choose a reason for hiding this comment

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

comment added.

tornado needs self.root to be defined, but since we are storing a tuple I figured a plural name might be less confusing.

Copy link
Member

Choose a reason for hiding this comment

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

I'd be inclined to stick with tornado's name - I agree it's not perfect, but I think it's more confusing to have two slightly different names for the same thing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, back to root.

@takluyver
Copy link
Member

Looks good.

The no-hidden behavior of the files handler
already requires this, but instead of raising, it just doesn't hide hidden files.

Bumping the minimum version also allows much cleaner static file handler subclasses.
takluyver added a commit that referenced this pull request Oct 23, 2013
bump minimum tornado version to 3.1.0
@takluyver takluyver merged commit 1782d64 into ipython:master Oct 23, 2013
@minrk minrk deleted the tornado-3.1 branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
bump minimum tornado version to 3.1.0
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.

None yet

2 participants