Vishnu Ks
123bcea518
management: Don't use sys.exit(1).
...
Using sys.exit in a management command makes it impossible
to unit test the code in question. The correct approach to do the same
thing in Django management commands is to raise CommandError.
Followup of b570c0dafa
2019-05-03 14:20:39 -07:00
Tim Abbott
f04d6ed19e
python: Sort imports in management commands.
2017-11-15 15:43:47 -08:00
rht
a311678190
zerver/management: Use python 3 syntax for typing.
2017-10-26 15:24:56 -07:00
Tim Abbott
13bb546ddd
subdomains: Hardcode can_add_realm_domains=True.
...
It was already always True if REALMS_HAVE_SUBDOMAINS, and now that's
the only supported configuration.
2017-10-02 16:32:10 -07:00
rht
32650c8fdc
zerver/management: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
e239e97351
zerver/management: Remove absolute_import.
2017-09-27 10:00:39 -07:00
neiljp (Neil Pilgrim)
ab4cbf81f0
mypy: Add assertions of get_realm results when parser requires realm.
2017-09-26 13:49:01 -07:00
Vishnu Ks
af1c1861da
management: Use self.get_realm in realm_domain.
2017-08-08 14:13:19 -07:00
Rishi Gupta
a56d703bdc
i18n: Remove translation tags in management commands.
2017-06-25 11:28:28 -04:00
Tim Abbott
4a67ba241e
realm_domains: Restructure library for getting realm domains.
...
* Remove duplicate list_of_domains_for_realm of get_realm_domains.
* Move get_realm_domains from actions.py.
2017-04-28 21:11:56 -07:00
Harshit Bansal
664b23c495
commands: Rename realm_alias command to realm_domain.
2017-04-04 15:48:03 -07:00