MinRK
deae294858
use 302 redirects
2014-09-21 13:45:51 -07:00
Min RK
50105b9e96
Merge pull request #44 from Carreau/fix-redirect
...
add some redirects
2014-09-21 13:43:32 -07:00
MinRK
54d63c19ea
send single-user logout to the Hub logout page
2014-09-21 13:41:41 -07:00
Matthias Bussonnier
d56e8b9186
fix some redirect.
...
login redict to home if already loged in
/hub redirect to /hub/
2014-09-21 19:56:54 +02:00
Min RK
7b2fd29657
Merge pull request #42 from minrk/master
...
pass config to spawner
2014-09-20 18:34:27 -07:00
MinRK
45e1822a2e
setgid and chdir before setuid
2014-09-20 18:31:27 -07:00
MinRK
0a2ddb7994
pass config to spawner
2014-09-20 18:31:00 -07:00
Min RK
f4544eb3e9
Merge pull request #41 from minrk/kernel_argv_2.x
...
don't pass notebook app args to kernel
2014-09-20 13:10:23 -07:00
MinRK
93a9acfa21
don't pass notebook app args to kernel
...
2.x compatibility fix
2014-09-20 12:13:24 -07:00
Min RK
43113689b5
Merge pull request #38 from minrk/restart-proxy
...
restart the proxy if it goes down
2014-09-19 17:25:09 -07:00
MinRK
82c06ebe98
always use transient IOLoop for run_sync
2014-09-19 17:21:55 -07:00
MinRK
24eebd94e4
make HTTP requests to the proxy async
2014-09-18 17:16:33 -07:00
MinRK
58b32f634a
restart the proxy if it goes down
...
and populate its table from the database
2014-09-18 17:04:17 -07:00
MinRK
6106fecd48
raise TimeoutError in wait_for_server
2014-09-18 16:07:44 -07:00
MinRK
a77e106488
move some utility functions to ORM classes
...
simplify handler methods
2014-09-18 15:37:39 -07:00
MinRK
67e2a71d8c
log unexpected errors in wait_for_server
2014-09-18 15:01:16 -07:00
MinRK
3181520e56
check for IPython >= 2.2
2014-09-17 12:09:46 -07:00
MinRK
97ac3ebf32
make hub-starting user admin by default
2014-09-16 16:19:15 -07:00
Min RK
216f12a5d9
Merge pull request #35 from minrk/config
...
add basic CLI and config file support
2014-09-16 16:09:15 -07:00
Min RK
e674eab8e0
Merge pull request #36 from minrk/async-wait
...
make wait_for_server async
2014-09-16 15:18:31 -07:00
MinRK
81c71a7f45
add missing yield for notify_proxy coroutine
2014-09-16 15:12:35 -07:00
MinRK
46b3e11110
make wait_for_server async
2014-09-16 15:02:42 -07:00
MinRK
83e9762845
add basic CLI and config file support
...
See `jupyterhub -h` for common shortcuts
default config file: `jupyter_hub_config.py`
generate config file with: `jupyterhub --generate-config`
non-default config file: `jupyterhub -f myconfig.py`
2014-09-16 14:47:48 -07:00
Min RK
e7f67bfc4f
Merge pull request #34 from minrk/admin.html
...
expand admin HTML page
2014-09-15 15:37:34 -07:00
MinRK
c8832008e8
don't render delete-user button for self
2014-09-15 01:54:55 -07:00
MinRK
48eeee0946
add admin.js
2014-09-15 01:45:12 -07:00
MinRK
eef2aff22f
simplify dialog HTML with template macros
2014-09-15 01:44:32 -07:00
MinRK
7f23c132f0
expand admin HTML page
...
can add/delete users, and start/stop user servers
2014-09-15 01:21:49 -07:00
MinRK
294fa8ceb6
add/remove users from whitelist when adding/deleting
2014-09-15 01:21:01 -07:00
Kyle Kelley
315accc4b9
Ensure python3 is aliased
2014-09-15 00:34:02 +00:00
Min RK
ac6b4788a5
Merge pull request #30 from minrk/restapi
...
getting started with REST API
2014-09-14 16:53:24 -07:00
MinRK
c93f17c324
add basic home, admin pages
...
- index no longer requires login, it's just a big fat login button
- home has stop, start, admin buttons
- admin doesn't do anything yet
- add jhapi javascript client for REST API
2014-09-14 16:47:10 -07:00
MinRK
b24e47d94a
some updates to login redirects
...
/anything served by Hub redirects to /hub/anything
/hub/user/[user] spawns single-user server and redirects to it
2014-09-14 16:47:09 -07:00
MinRK
5cba7c50b2
update base page template
...
- no body params, just write jhapi globals instead
- baseUrl is static/js
2014-09-14 16:47:09 -07:00
MinRK
0a8759b0a5
flesh out REST API
...
can now list/view/add/create/modify users
and start/stop single-user servers
2014-09-14 16:47:09 -07:00
MinRK
a47e390aa0
add mock single-user server for testing
2014-09-14 16:47:09 -07:00
MinRK
833835b0f3
add user list handler, first of many
2014-09-14 11:54:37 -07:00
MinRK
970e4d2ce2
minor fixes to testing utils
2014-09-14 11:54:37 -07:00
MinRK
a245641886
simplify handler setup with default_handlers in modules
...
like IPython's, but a bit simpler since we don't have
so many services to deal with.
2014-09-14 11:54:37 -07:00
MinRK
53edc0b2f7
add a notion of admin users
...
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00
MinRK
6d753ec6ea
use 302 not 301 on /
2014-09-14 11:53:10 -07:00
MinRK
3b6dc5a8ae
install subpackages
2014-09-14 11:23:03 -07:00
Kyle Kelley
2f71b18deb
[Docker] Make bower installation separate.
2014-09-14 17:09:20 +00:00
Min RK
0c7d9ad14e
Merge pull request #29 from rgbkrk/py3docker
...
Switch to Python 3 in Dockerfile
2014-09-13 21:14:48 -07:00
Kyle Kelley
36ba03de74
Switch to Python 3, use python3 entry
2014-09-14 03:54:19 +00:00
MinRK
42f040c6a1
return orm.User from get_current_user
...
rather than name.
removes need for `get_user` wrapper
2014-09-13 17:19:34 -07:00
Min RK
91a412c095
Merge pull request #25 from rgbkrk/dockit
...
Dock it
2014-09-13 16:32:42 -07:00
Min RK
42e313836d
Merge pull request #28 from minrk/mocking
...
add mock utils to tests
2014-09-13 16:31:49 -07:00
MinRK
5c87461605
add mock utils to tests
...
basic testing framework to get starting writing and testing the REST API
including tests for the authorizations API,
the only API URL defined so far.
2014-09-13 16:11:22 -07:00
MinRK
696b887b50
allow threaded access to sqlite by default
2014-09-13 16:05:43 -07:00