zulip/zerver/views
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
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py alert_words: Avoid redundant .lstrip(). 2017-02-28 10:13:03 -08:00
attachments.py Add support for managing and deleting attachments. 2017-02-16 23:44:44 -08:00
auth.py api_dev_fetch_api_key: Improve invalid email message. 2017-04-13 12:48:13 -07:00
compatibility.py mobile: Add an endpoint for checking compatibility. 2017-02-03 09:55:34 -08:00
events_register.py events_register: Don't include subscribers in API data by default. 2017-02-20 11:07:09 -08:00
home.py models: Rename RealmAlias model to RealmDomain. 2017-04-04 15:48:03 -07:00
hotspots.py hotspots: Add backend support for tutorial hotspots. 2017-03-29 11:34:32 -07:00
integrations.py integrations: Pass context to integration objects. 2017-04-07 15:52:15 -07:00
invite.py signups: Use topic string_id for internal messages from new user signups. 2017-03-13 10:00:41 -07:00
messages.py Replace timezone.now with timezone_now. 2017-04-16 12:28:56 -07:00
muting.py Implemented API routes for muting/unmuting a topic 2017-03-15 16:19:00 -07:00
pointer.py mypy: Convert zerver/views to use typing.Text. 2016-12-26 13:43:09 -08:00
presence.py decorator: Add human_users_only decorator. 2017-04-16 12:51:23 -07:00
push_notifications.py remove_push_device_token: Remove unused request argument. 2017-03-05 22:01:28 -08:00
reactions.py reactions: Fix reacting to messages on streams you're not subscribed to. 2017-03-22 20:22:13 -07:00
realm.py Realm.py: Refactor and remove duplicate code. 2017-04-17 21:30:11 -07:00
realm_domains.py views/realm_aliases.py: `realm_alias` migration. 2017-04-04 15:48:03 -07:00
realm_emoji.py mypy: Fix several Optional typing errors. 2017-02-10 23:53:44 -08:00
realm_filters.py Change domain to realm_id in bugdown and realm filter dicts and caches. 2017-01-03 16:25:20 -08:00
realm_icon.py Add size limit for uploading user avatars and realm icons. 2017-03-07 22:13:01 -08:00
registration.py registration: Fetch length limits from the backend's actual sizes. 2017-03-25 20:10:12 -07:00
report.py statsd: Change keys to use Realm.string_id instead of domain. 2017-03-13 09:51:02 -07:00
streams.py Send stream_id in subscription updates. 2017-03-05 15:26:00 -08:00
tutorial.py internal_send_message: Make realm argument mandatory. 2017-01-21 21:37:30 -08:00
typing.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
unsubscribe.py jinja2: No need for custom render_to_response. 2017-03-17 13:57:34 -07:00
upload.py uploads: Add authorization check before serving files. 2017-04-07 16:35:28 -07:00
user_settings.py user_settings: Disable bot access to several endpoints. 2017-04-16 13:14:59 -07:00
users.py Switch do_change_bot_owner to use RealmAuditLog. 2017-04-05 12:50:55 -07:00
zephyr.py test-backend: Raise zerver/views/zephyr.py test coverage to 100%. 2017-02-26 20:54:25 -08:00