Commit Graph
11 Commits
Author SHA1 Message Date
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 528497f7c4 Refactor galaxy.web.security into galaxy.security.idencoding.
I want to be able to use this class in galaxy.model and it doesn't have any dependnecies on "web" stuff so I'd like to move it out of galaxy.model and into galaxy.security. galaxy.model shouldn't have dependencies on galaxy.web (and doesn't after the recent 976f5ad367), so this pre-emptively ensures it doesn't require these dependencies for https://github.com/galaxyproject/galaxy/pull/7367.

This has the benefit of also eliminating any galaxy.web dependencies from the generic test base file (test/base/testcase.py) which has long been a goal of mine as well.

There are places we legimately use ID encoding and decoding for security (i.e. job files API) but for the most part it doesn't provide security for API endpoints and this causes confusion repeatedly, so I've started the process of renaming the contained class SecurityHelper to something I feel makes it clearer this is just about encoding and decoding IDs.
2019-03-19 14:28:31 -04:00
Nicola Soranzo df8abbe3ef Prefer unicodify() for binary-to-text conversion
which supports non-utf-8 encodings.
2018-08-21 12:35:05 +01:00
mvdbeek dc4a4b0eb5 py3: fix secret decoder script 2018-08-14 14:56:07 +02:00
John Chilton 5f3f792f6f Unification of Galaxy configuration parsing for scripts/* 2018-03-23 16:14:49 -04:00
Nicola Soranzo bd88524a10 Fix import order and Python3 compatibility 2017-08-18 12:35:04 +01:00
Nicola Soranzo 4e75635d62 Use log.warning() instead of deprecated warn() 2017-08-18 12:35:04 +01:00
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00
Eric Rasche 986134d766 Should exit immediately to avoid index error 2017-03-17 15:12:50 +00:00
Eric Rasche fb2450ff33 document scriptg 2017-02-15 21:31:22 +00:00
Eric Rasche 6849752fb6 Rename, Strip F for Folder 2017-02-15 21:28:38 +00:00