GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
os.mkdir in DiskStore(root) will fail if on:
root = /nonexistant/root
s = web.session.DiskStore(root)
this patch will create create all intermediate directories too. Also explicitely imports os.path so that it doesn't rely on os.path being available by only importing os.
Hope to get that acceptet I jus shot myself in the knee because of this...
EDIT: slight md syntax correction
create all dirs if root doesn't exist
* Use os.makedirs instead of os.mkdir
* Use os.path.abspath to get rid of eventual '..' elements
listen on 127.0.0.1 by default instead of 0.0.0.0
There shouldn't be any worries about opening up an
unsecured application just because it is run with
I need to learn how github pull requests work.
Sorry for the inconvenience I meant to submit seperate pull requests which appearently isn't how pull requests work.
commit: 87a142d -- See original comment
commit: f89041c -- This really just bugs me as OSX keeps asking wether $FOO is allowed to listen on all interfaces so I tried to make up a good reason for not listening on 0.0.0.0 and instead listen on 127.0.0.1 by default
This won't change the default bind address. The app.request method is used for testing stuff, not for starting the dev server.