Tim Abbott
e603237010
email: Convert accounts code to use delivery_email.
...
A key part of this is the new helper, get_user_by_delivery_email. Its
verbose name is important for clarity; it should help avoid blind
copy-pasting of get_user (which we'll also want to rename).
Unfortunately, it requires detailed understanding of the context to
figure out which one to use; each is used in about half of call sites.
Another important note is that this PR doesn't migrate get_user calls
in the tests except where not doing so would cause the tests to fail.
This probably deserves a follow-up refactor to avoid bugs here.
2018-12-06 16:21:38 -08:00
rht
138c486548
zilencer: Use python 3 syntax for typing.
2017-11-22 12:29:03 -08:00
Tim Abbott
2b43a0302a
python: Sort imports in smaller apps.
2017-11-15 15:55:49 -08:00
rht
ccf2792c1c
refactor: Remove six.moves.configparser import.
2017-11-07 10:51:44 -08:00
rht
8d289b8228
zilencer: Remove absolute_import.
2017-09-27 20:20:07 -07:00
rht
ed9b3ca440
zilencer: Remove import print_function.
2017-09-27 18:06:47 -07:00
Vishnu Ks
9a44794d14
zilencer: Eliminate get_user_profile_by_email from sync_api_key.
2017-07-18 17:14:05 -07:00
Rafid Aslam
50afe5a6c2
sync_api_key: Fix `ConfigParser` deprecation warnings.
...
Fix `ConfigParser` deprecation warnings in
`zilencer/management/commands/sync_api_key.py`.
Fixes #2727 .
2016-12-30 11:52:22 -08:00
Tim Abbott
a1a27b1789
Annotate most Zulip management commands.
2016-06-04 10:12:06 -07:00
Tim Abbott
700055c194
Apply modernize transform libmodernize.fixes.fix_file.
...
This replaces use of file() with open() which is python 3 compatible,
and also adds it to our python 3 support test suite.
2016-01-26 21:09:42 -08:00
Tim Abbott
2ea0663a4a
Apply Python 3 futurize transform libmodernize.fixes.fix_imports_six.
2015-11-01 09:26:16 -08:00
Tim Abbott
f3783fb4a1
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import.
2015-11-01 09:26:16 -08:00
Tim Abbott
792075ddeb
sync_api_key: Don't throw a messy exception when user doesn't exist.
2015-10-15 09:16:58 -04:00
Leo Franchi
fe1313ad76
Split management commands for internal use into zilencer/
...
(imported from commit 3fd81bfc7e987fc88bd1d632546850eebbb92234)
2013-11-04 11:58:52 -05:00