aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/tools.py
AgeCommit message (Expand)Author
2023-10-26Use auth-server for authentication...Authenticate with the Auth-server (gn-auth) to get the token to use on the API server (GN3). Frederick Muriuki Muriithi
2023-10-26Use gn-auth as the authorisation server.Frederick Muriuki Muriithi
2023-09-11Replace string concat with os.path.join....* wqflask/utility/tools.py (assert_writable_dir): Use "os.path.join" to concatenate paths. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-10Remove `OVERRIDES` global variable.Frederick Muriuki Muriithi
2023-07-05Compute the GN_VERSION in setup code not shell scriptFrederick Muriuki Muriithi
2023-07-05Config: Remove unused `OVERRIDES`...The `OVERRIDES` variable has no actual use in the application, therefore, this commit removes it and its dependent code. Frederick Muriuki Muriithi
2022-12-29Implement "login" via OAuth2Frederick Muriuki Muriithi
2022-10-28Settings: Add the `REDIS_URL` setting.Frederick Muriuki Muriithi
2022-10-28Declutter stdout...* wqflask/utility/tools.py: Output extraneous messages to stderr rather than stdout to avoid cluttering the output. Frederick Muriuki Muriithi
2022-09-19Refactor: raise appropriate error...If a file/directory does not exist, raise the builtin `FileNotFoundError` rather than the generic `Exception`. Frederick Muriuki Muriithi
2022-07-25Return config in app.config or None...Update the code to return the setting already set up in the app.config dictionary if it exists or None if it does not exist. Frederick Muriuki Muriithi
2021-11-25Delete noisy loggingBonfaceKilz
2021-10-28Remove all elasticsearch references in gn2BonfaceKilz
2021-10-22Fix line pulling GN3_LOCAL_URL from settingszsloan
2021-10-22Added proxy and local GN3 URLs in tools.py (which should be set in the settin...zsloan
2021-04-30autopep8: Fix E121,E122,E123,EI24,E125,E126,E127,E128,E129,E131,E133BonfaceKilz
2021-04-30autopep8: Fix E101, E11BonfaceKilz
2021-04-30autopep8: Fix E70 and E701BonfaceKilz
2021-04-30autopep8: Fix E501BonfaceKilz
2021-04-30autopep8: Fix E301,E302,E303,E304,E305,E306BonfaceKilz
2021-04-30autopep8: Fix E20-E27...Run: python -m autopep8 --in-place --recrusive ./ --select\ E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,\ E242,E251,E252,E26,E265,E266,E27 -p 3 BonfaceKilz
2020-12-18Added redirect_uri to the ORCID_AUTH_URL since it wasn't working due to missi...zsloan
2020-08-19Remove extra whitespace(or add it) from comma separated items...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib> BonfaceKilz
2020-08-19Fix dictionary iteration methods...Run `2to3-3.8 -f dict -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and <https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list> BonfaceKilz
2020-08-18Wrap print statements in parenthesesBonfaceKilz
2020-07-24Revert "Add work-around for failed imports in unittest"...This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f. BonfaceKilz
2020-07-24Add work-around for failed imports in unittest...* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app` and the gn2 script will use `from wqflask import app` BonfaceKilz
2020-07-24Revert "Add work-around for failed imports in unittest"...This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f. BonfaceKilz
2020-07-24Add work-around for failed imports in unittest...* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app` and the gn2 script will use `from wqflask import app` BonfaceKilz
2020-07-16Expose elastic-search variables for tests to passBonfaceKilz
2020-05-06Replace CSS dependencies for datatablesBonfaceKilz
2020-04-26Merge master and testingmasterPjotr Prins
2020-04-24Replaced hard-coded instances of GN2 urls with ones pulled from settings filezsloan
2020-04-22Fixed a variety of issues related to users registering and logging in...GN2 should now work when Redis is empty zsloan
2020-03-03Refactored all the anonymous (not logged-in) user stuff so that both logged-i...zsloan
2019-09-06Fix name of javascript-twitter-post-fetcherPjotr Prins
2019-07-23Added change to automatically update datasets list using rest api instead of ......Removed option to edit certain html pages, like news, policies, etc zsloan
2019-02-18Updated installation instructions and SERVER_PORT for single flask serverPjotr Prins
2019-02-13Removed pylmm references and related functionsPjotr Prins
2018-09-05ELASTICSEARCH settings and fix runserver.py to run without gunicornPjotr Prins
2018-04-06See #308....Cytoscape and related is now loaded from Guix. Use the latest GN2_PROFILE. Pjotr Prins
2018-03-26Refactor startup config for gunicorn and werkzeugPjotr Prins
2018-03-26FixPjotr Prins
2018-03-26Authentication: some mods around defaultsPjotr Prins
2018-03-26- Disabled PYTHONPATH injection - fix Guix instead, see https://github.com/pj......- Renamed WQFLASK_SETTINGS to GN2_SETTINGS Pjotr Prins
2018-03-26Fixing authentication stuff so it uses parameters properly. Also no PYTHONPAT......it is now in the Guix build. Pjotr Prins
2018-03-26Add SMTP configuration variables...* Add configuration variables to enable the system connect to the configured SMTP server to send out emails. Muriithi Frederick Muriuki
2018-03-26Set to None if no value provided...* Add a method to set the configuration variables to None if the configuration values are not provided at startup or in the configuration files. The system already checks for these values, and if they are absent, it simply fails to display the OAuth service as available for use to login. Muriithi Frederick Muriuki
2018-03-26Update configurations...* Have the authorisation URLs build up from the client id and client secret values. Muriithi Frederick Muriuki
2018-03-26Add more configuration variables....* Add configurations for elasticsearch and github. Muriithi Frederick Muriuki