Commit Graph

213 Commits

Author SHA1 Message Date
MinRK
34cebb5dba add Proxy.fetch_routes
and DRY up the api requests
2014-09-22 17:24:09 -07:00
MinRK
2a46893448 update proxy with already-running users at startup 2014-09-21 22:50:01 -07:00
MinRK
fc93f1b0c2 allow resetting the database 2014-09-21 22:44:50 -07:00
MinRK
363d81a380 fix inverted logic in Server.is_up() 2014-09-21 22:44:50 -07:00
MinRK
3a0f19f1a4 cookie_secret is no longer bytes
add utils.random_hex for generating a unicode object
with random hex bytes
2014-09-21 22:44:50 -07:00
MinRK
2eb42eb0b3 add orm.User.find and orm.[Foo]Token.find
for simple get-by-name access
2014-09-21 22:44:50 -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
a77e106488 move some utility functions to ORM classes
simplify handler methods
2014-09-18 15:37:39 -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
53edc0b2f7 add a notion of admin users
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00
MinRK
696b887b50 allow threaded access to sqlite by default 2014-09-13 16:05:43 -07:00
MinRK
534eee46fc rename db.py orm.py
less confusing to have self.db and orm.User
than self.db and db.User.
2014-08-25 15:10:28 -07:00