Age | Commit message (Collapse) | Author |
|
See: <https://stackoverflow.com/questions/31848293/python3-and-hmac-how-to-handle-string-not-being-binary>
|
|
* wqflask/utility/db_tools.py: escape_string returns a binary string which
introduces a bug when composing sql query string. The escaped strings have to be
converted to plain text.
|
|
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-future>
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-basestring>
|
|
* wqflask/utility/Plot.py: import corestats from the utility module.
|
|
|
|
* wqflask/utility/Plot.py: Remove unused imports like "numarray". "numarray" is
does not have py3 support so it's important to remove references to it.
|
|
user apparently doesn't have access to, so I replaced it with a link to
the dynamically set TEMPDIR
* wqflask/utility/pillow_utils.py - Replaced "/tmp/" in image location
with TEMPDIR
|
|
* wqflask/utility/webqtlUtil.py (genRandStr): Replace "string.letters" with
"string.ascii_letters".
|
|
Run:
```
2to3-3.8 -f imports -w . && \
2to3-3.8 -f imports2 -w .
```
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-imports> and
<https://docs.python.org/2/library/2to3.html#2to3fixer-imports2>
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
|
|
Run `2to3-3.8 -f idioms -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-xrange>
|
|
Run `2to3-3.8 -f raise -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise>
|
|
Run `2to3-3.8 -f ne -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-ne>
|
|
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>
|
|
* wqflask/utility/svg.py [roct, ellipse, SVGelement]: Raise only a single value error
if either height or width is not defined. Fixes parsing error when running
`2to3-3.8 -f apply -w .`
|
|
Run `2to3-3.8 -f map -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map>
|
|
* wqflask/utility/svg.py: Apply pep8 to fix indentation error when running
`2to3-3.8 -w .`:
````
RefactoringTool: Can't parse ./wqflask/utility/svg.py: IndentationError: unindent does not match any outer indentation level (<tokenize>, line 403)
````
|
|
* wqflask/utility/svg.py: Use "!=". The operator, "<>" is removed in Python3
|
|
|
|
* wqflask/utility/Plot.py: Update docstring.
|
|
* wqflask/utility/pillow_utils.py: New method.
|
|
Use the new draw_rotated_text() function to draw the text rotated as was
formerly done.
* wqflask/utility/Plot.py (plotBar): Use draw_rotated_text().
* wqflask/wqflask/marker_regression/display_mapping_results.py:
(DisplayMappingResults) Use draw_rotated_text().
|
|
* wqflask/utility/pillow_utils.py: Create a module to hold some utility
functions for drawing with Pillow. Initialise the module with a function to draw
rotated text.
|
|
* wqflask/utility/Plot.py: Update font paths.
* wqflask/fonts/ttf: Update font files.
|
|
* wqflask/wqflask/marker_regression/display_mapping_results.py: Add font files
(DisplayMappingResults): Update the code from the Piddle way of things to the
Pillow way of things, for example, replace:
- pid.drawRect(...) with im_drawer.rectangle(...)
- pid.drawString(...) with im_drawer.text(...)
- pid.drawPolygon(...) with im_drawer.polygon(...) etc.
* wqflask/utility/Plot.py: Migrate code from the older, unsupported Piddle to
the newer Pillow library.
|
|
* wqflask/utility/authentication_tools.py: the code forgot to get
resource_info when a resource wasn't in Redis yet, causing an error when
it was referenced, so I added a line getting the resource info (and also
a couple comments for other lines related to authentication)
|
|
|
|
Build/add tests
|
|
This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f.
|
|
* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app`
and the gn2 script will use `from wqflask import app`
|
|
* wqflask/utility/formatting.py: apply it
|
|
* wqflask/utility/formatting.py(numify): Update `num_repr` to have a zero
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values_with_values):
Remove `num_overlap`
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values):
At no one point will that assert be hit
|
|
* wqflask/utility/corr_result_helpers.py: Delete doc-test
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values): Replace loop with
zip form
|
|
* wqflask/utility/chunks.py: Remove test code from module
|
|
This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f.
|
|
* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app`
and the gn2 script will use `from wqflask import app`
|
|
|
|
|
|
|
|
where a trait is authenticated twice
|
|
something that automatically inserts resources with default privileges
|
|
and also simplified the check_owner_or_admin function a little
|
|
|
|
|