aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/route_manager.py (follow)
Commit message (Collapse)AuthorAgeLines
* Rearrange views and templatesGravatar Gareth Coles2018-02-21-0/+1
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-18-2/+2
| | | | | # Conflicts: # pysite/views/ws/echo.py
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-18-7/+7
|\ | | | | | | | | # Conflicts: # pysite/views/ws/echo.py
| * Simple logging. (#16)Gravatar Leon Sandøy2018-02-18-7/+7
| | | | | | | | | | | | | | | | * Simple logging. I don't know if this will show up in the docker logs like inver wanted, so it probably needs testing in prod. * log level via hasattr/getattr, basicConfig instead of custom handlers * removing the empty string log call
* | Rename "Websocket" to "WS" to avoid confusion with the gevents-websocket ↵Gravatar Gareth Coles2018-02-18-4/+4
|/ | | | WebSocket class
* Integrate websockets into the Flask webappGravatar Gareth Coles2018-02-17-7/+28
|
* Hey, who turned out the lights?!Gravatar Gareth Coles2018-02-15-1/+1
|
* snekchekGravatar Gareth Coles2018-02-15-1/+1
|
* Fix up API key validation and database api locationGravatar Gareth Coles2018-02-15-5/+1
|
* Database API Improvements #1qcra (#13)Gravatar Gareth Coles2018-02-14-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A large set of changes, including: * A mixin for views that need the DB * Many changes to the database class in order to make things more fluid * Provide the route manager in view setup() methods * Pushing up the progress so far * snekchek * Full (undocumented) database implementation * snekchek * Don't rely on exceptions for table deletion * Add RethinkDB data to gitignore * Documentation for DB class * Make Flake8 ignore P102 What even is that? What does "docstring does contain unindexed parameters" mean? * Document the base_routes module * Cleanup RE latest reviews * snekchek (bah)
* RethinkDB API Views #yqhgGravatar lmn2018-02-13-52/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactoring the database implementation into a class of its own. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * API validation added to the APIView class, TagView should be finished as well. * super important commit you guys * fixed a bug with the RethinkDB class where host and port attributes were accessed before being created * Fixed my editor now you guys * Fixing up some of the problems brought up in gdude's review * Handling GET requests with param indata and POST with JSON. Fixed error handling to use the constants and the baseclass self.error(). * Get API-key from headers, context manage the db assignment, and default env var values * Changed API-KEY header to X_API_Key. Added a default for secret key. it should no longer be necessary with environment variables to run this system locally. * Changing back the nav to have relative paths * Why am I like this
* Server name via env var, defaulted to localhostGravatar Gareth Coles2018-02-11-1/+1
|
* Set server name for app configGravatar Gareth Coles2018-02-11-0/+1
|
* Guess who forgot to run snekchek!Gravatar Gareth Coles2018-02-09-1/+1
|
* Make APIView base class not loadableGravatar Gareth Coles2018-02-09-1/+2
|
* Move from straight app registration to Blueprints (#6)Gravatar Gareth Coles2018-02-09-6/+18
|
* Weird, PyCharm didn't commit all my changes last pushGravatar Gareth Coles2018-02-08-1/+0
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-08-4/+55
|\
| * Turn on debug mode with `FLASK_DEBUG=1`Gravatar Gareth Coles2018-02-07-2/+4
| |
| * Static files; basic templatesGravatar Gareth Coles2018-02-07-1/+6
| |
| * Fix template loadingGravatar Gareth Coles2018-02-06-1/+1
| |
| * Use .get() for environsGravatar Gareth Coles2018-02-06-4/+4
| |
| * snekchekGravatar Gareth Coles2018-02-06-2/+3
| |
| * Rethinkdb setup method; not actually called yetGravatar Gareth Coles2018-02-06-1/+42
| |
| * Template renderingGravatar Gareth Coles2018-02-06-2/+3
| |
* | PffftGravatar Gareth Coles2018-02-08-2/+0
|/
* Revert "Finally fix this garbage"Gravatar Gareth Coles2018-02-06-0/+41
| | | | This reverts commit 57abb43
* Finally fix this garbageGravatar martmists2018-02-05-41/+0
| | | | Signed-off-by: martmists <[email protected]>
* Revert "Major update"Gravatar Gareth Coles2018-02-05-0/+41
| | | | This reverts commit 80a1ab5
* Major updateGravatar martmists2018-02-05-41/+0
| | | | | | | | | | | | | | - Switch to Japronto - More linters - Rewrite route handling - Rewrite error handling - Rewrite static handling - Error when no `Index` propery is found - Probably some more stuff? idk Code needs testing; Maybe we could use pytest? Signed-off-by: martmists <[email protected]>
* Dynamic route loader; proper application structureGravatar Gareth Coles2018-02-05-0/+41
Also fixed flake8-imports getting the other wrong