Tim Abbott
|
642086ff65
|
subdomains: Pass whether root domain is available to registration.
This data is necessary to determine whether to offer the root domain
in the realm creation form.
|
2017-10-18 22:53:10 -07:00 |
|
Tim Abbott
|
0884588a5e
|
subdomains: Add a variable for how root domain is represented.
We use Realm.SUBDOMAIN_FOR_ROOT_DOMAIN as the special name for how the
root domain is referred to as a subdomain in the code.
|
2017-10-18 22:47:31 -07:00 |
|
Tim Abbott
|
4ddb812354
|
check_subdomain: Remove case for user_subdomain being None.
With REALMS_HAVE_SUBDOMAINS always on, user_subdomain is never None,
so this was just dead code.
|
2017-10-18 22:35:07 -07:00 |
|
Tim Abbott
|
1ab2ca5986
|
subdomains: Extract zerver.lib.subdomains library.
These never really belonged with the rest of zerver.lib.utils.py, and
having a separate library makes it easier to enforce full test
coverage.
|
2017-10-18 22:27:48 -07:00 |
|