aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py (follow)
Commit message (Collapse)AuthorAgeLines
* Snowflakes should be handled as stringsGravatar Gareth Coles2018-04-10-6/+8
|
* Allow contribs to edit wiki pagesGravatar Gareth Coles2018-04-10-1/+2
|
* Easier debugging and optimised importsGravatar Gareth Coles2018-04-08-1/+3
| | | | Simply set FLASK_DEBUG=1 in your env to skip OAuth checks
* Allow helpers to edit pages alsoGravatar Gareth Coles2018-04-07-0/+1
|
* Add CSRF protection and optimise importsGravatar Gareth Coles2018-04-01-0/+6
|
* Fix logging, restrict staff index routeGravatar Gareth Coles2018-04-01-0/+2
|
* Decorator for routes that require a login with one of a set of rolesGravatar Gareth Coles2018-03-30-0/+1
|
* Add PREFERRED_URL_SCHEME env var to fix `url_for()`Gravatar Gareth Coles2018-03-29-1/+3
|
* OAuth fixesGravatar Gareth Coles2018-03-29-1/+1
|
* Oauth (#45)Gravatar Nate the great2018-03-29-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Creating a OAUTH login for the site. We still need to have a way to fill in credentials however. Signed-off-by: Zwork101 <[email protected]> * How ya like me now Travis? Signed-off-by: Zwork101 <[email protected]> * Fix slight error in database insertion * Revert "Fix slight error in database insertion" (wrong branch) This reverts commit 9ac6cbb * Don't have snekchek working, but I'll try again. Signed-off-by: Zwork101 <[email protected]> * Please enter the commit message for your changes. Lines starting * Adding Oauth2 login to site. * Add prefix * Add prefix * This never happened * Flipping Travis I still can't get snekchek to work locally. * Added a whole bunch of stuff, ready to be used. Signed-off-by: Zwork101 <[email protected]> * Making sessions more secure, and future safe. Signed-off-by: Zwork101 <[email protected]> * Adding some quick stuff Signed-off-by: Zwork101 <[email protected]> * Appease the flake8 gods Signed-off-by: Zwork101 <[email protected]> * Appease the flake8 gods Signed-off-by: Zwork101 <[email protected]> * Whoops Signed-off-by: Zwork101 <[email protected]> * Add comments, fix user_data function. Signed-off-by: Zwork101 <[email protected]> * Whooops, forgot to flake :/ Signed-off-by: Zwork101 <[email protected]> * Make it look nicer, thanks Aperture. Signed-off-by: Zwork101 <[email protected]> * Fixing login issues and added button * Add a OauthMixin to allow for easy data access. Clean stuff up. Signed-off-by: Zwork101 <[email protected]> * Fix a test, and use self.assertEqual rather then self.assertEquals! Signed-off-by: Zwork101 <[email protected]> * Please don't ask how that happened. Signed-off-by: Zwork101 <[email protected]> * Added some tests, moved a bunch of stuff around. Mainly cleaned stuff up. Signed-off-by: Zwork101 <[email protected]> * Add a ton of tests, try to please the coverall gods :D, moved some code into a function for testing. Signed-off-by: Zwork101 <[email protected]> * Just some stupid stuff I missed. Signed-off-by: Zwork101 <[email protected]> * Fix an issue with the test, and add docs Signed-off-by: Zwork101 <[email protected]> * Remove pointless function. (join_user) Signed-off-by: Zwork101 <[email protected]> * Fix test consistency
* Datadog TCP loggingGravatar Gareth Coles2018-03-13-0/+4
|
* Logging fixesGravatar Gareth Coles2018-03-10-2/+2
|
* Logging with PapertrailGravatar Gareth Coles2018-03-10-0/+5
|
* Change 418 error descriptionGravatar JoeBanks132018-03-01-1/+1
|
* Add error messages (#30)Gravatar Joseph2018-02-28-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add error messages Signed-off-by: JoeBanks13 <[email protected]> * Remove un-used keyword arg from 404 * Assert for status code instead of full content * PEP8 * test lint * please coverage * oh * Exclude websockets.py from coverage * Move code output into terminal * Switch typewriter href protocol * Add tests for websockets.py * Abort previous commit, coveralls did not let coverage go down * Add more pauses and request => response * move css and js out, add typewriter JS to our own repo & add method for appending text in bulk. * Enable REPL on 4XX and change error descriptions * commas * /error path
* API schema validation decorator #yzuf (#15)Gravatar Gareth Coles2018-02-16-2/+8
| | | | | | | | | | * API schema validation decorator * Remove stray comma * Remove unnecessary conditional * Only cast to list when needed to
* Add some constants for our rolesGravatar Gareth Coles2018-02-15-0/+6
| | | | These will be important later
* RethinkDB API Views #yqhgGravatar lmn2018-02-13-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Asana integration (#7)Gravatar Gareth Coles2018-02-11-0/+1
| | | | | | * Event dispatching and webhook sending * snekchek
* Base API route and error codes enumGravatar Gareth Coles2018-02-09-0/+8