Merge lp:~fgallina/conn-check/configs-dont-mess-with-caches into lp:~ubuntuone-hackers/conn-check/configs
Proposed by
Fabián Ezequiel Gallina
Status: | Merged |
---|---|
Approved by: | Fabián Ezequiel Gallina |
Approved revision: | 31 |
Merged at revision: | 31 |
Proposed branch: | lp:~fgallina/conn-check/configs-dont-mess-with-caches |
Merge into: | lp:~ubuntuone-hackers/conn-check/configs |
Diff against target: |
28 lines (+10/-1) 1 file modified
conn_check_configs/django.py (+10/-1) |
To merge this branch: | bzr merge lp:~fgallina/conn-check/configs-dont-mess-with-caches |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart (community) | Approve | ||
Review via email: mp+324680@code.launchpad.net |
Commit message
Properly handle single value CACHES locations
The `location` key in CACHES can either be a single value string or a list. The code already attempted to wrap the value if it was not an iterable, but since strings are iterables in python the logic was wrong.
To post a comment you must log in.
15:10 < fgallina> nessita: yeah, isinstance against `types.StringTypes` and `basestring` should be equivalent, but it gave me also a quick win for making it py3 compatible.
15:10 < fgallina>| hackity hack
15:11 < nessita> fgallina, and this code has no tests? :-
15:11 < nessita> wesleeeeeeeey
15:11 < fgallina> nessita: I feel most sad there are no tests for this code whatsoever and I felt compelled to add some but I didn't want to waste much time on this fix.
15:12 < fgallina> nessita: there's an empty tests.py ;_;
15:12 < nessita> ack