zulip/zerver/views
PIG208 dcbb2a78ca python: Migrate most json_error => JsonableError.
JsonableError has two major benefits over json_error:
* It can be raised from anywhere in the codebase, rather than
  being a return value, which is much more convenient for refactoring,
  as one doesn't potentially need to change error handling style when
  extracting a bit of view code to a function.
* It is guaranteed to contain the `code` property, which is helpful
  for API consistency.

Various stragglers are not updated because JsonableError requires
subclassing in order to specify custom data or HTTP status codes.
2021-06-30 16:22:38 -07:00
..
development python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
archive.py archive: Use access_web_public_stream helper. 2021-04-14 12:37:34 -07:00
attachments.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
auth.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
compatibility.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
custom_profile_fields.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
digest.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.py api docs: Replace most markdown files with a common template. 2021-06-24 10:42:08 -07:00
drafts.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
email_mirror.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
events_register.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
home.py logo: Compute realm-logo url in frontend only. 2021-06-29 13:42:44 -07:00
hotspots.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
invite.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
message_edit.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
message_fetch.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
message_flags.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
message_send.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
muting.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
portico.py plans_page: Fix broken redirection to /accounts/login/. 2021-06-15 16:49:01 -07:00
presence.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
push_notifications.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
reactions.py reactions: Select Message FOR UPDATE when adding/removing. 2021-06-04 08:18:17 -07:00
realm_domains.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_emoji.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_export.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_icon.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_linkifiers.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_logo.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_playgrounds.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
realm.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
registration.py billing: Enforce license limit for plans on manual license management. 2021-06-09 17:42:38 -07:00
report.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
storage.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
streams.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
submessage.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
tutorial.py api: Fix encoding of strings in tutorial endpoint. 2021-05-07 14:06:54 -07:00
typing.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
unsubscribe.py unsubscribe: Configure as csrf_exempt. 2021-04-28 15:33:32 -07:00
upload.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
user_groups.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
user_settings.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
users.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
video_calls.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
zephyr.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00