zulip/zerver
Sarah 1a7f487260 Realm.py: Refactor and remove duplicate code.
Moved error handling to the beginning of the update_realm
function. Removed several if statements and replaced them with
a block of code that loops through realm properties and updates
them if an update has been sent through the request. Also
created an 'exclude' list for realm properties that do not fit
into the general pattern that most other realm properties
follow for updating. Those properties are handled separately.

Some comments added by tabbott.

Addresses part of issue #3854.
2017-04-17 21:30:11 -07:00
..
fixtures integrations: Add test event handler to Solano. 2017-04-11 16:59:06 -07:00
lib bugdown: Use queue for processing of links in image previews. 2017-04-17 20:48:16 -07:00
management Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
migrations Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
templatetags render_markdown_path: Remove unnecessary and broken caching. 2017-04-12 20:29:04 -07:00
tests github: Call the appropriate authenticate. 2017-04-17 21:03:08 -07:00
tornado Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
views Realm.py: Refactor and remove duplicate code. 2017-04-17 21:30:11 -07:00
webhooks Replace timezone.utc with timezone_utc. 2017-04-16 12:28:56 -07:00
worker Handle unicode characters in email mirror. 2017-04-05 12:18:41 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Add notifications on new logins to Zulip. 2017-03-25 16:50:52 -07:00
context_processors.py Add default response for `terms` and `privacy` endpoints. 2017-04-12 14:09:14 -07:00
decorator.py decorator: Add human_users_only decorator. 2017-04-16 12:51:23 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
forms.py registration: Fetch length limits from the backend's actual sizes. 2017-03-25 20:10:12 -07:00
logging_handlers.py logging_handlers: Avoid super long subject lines. 2017-03-26 13:10:43 -07:00
middleware.py Add notifications on new logins to Zulip. 2017-03-25 16:50:52 -07:00
models.py Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
signals.py Replace timezone.get_current_timezone_name with timezone_get_current_timezone_name. 2017-04-16 12:28:56 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py docs: Add discussion of VFL to front-end-build-process.md. 2017-03-04 21:14:17 -08:00