zulip/zerver/actions
Zixuan James Li bb9e80d7a2 i18n: Deal with lazy strings more carefully.
This uses a more specific type `_StrPromise` to replace `Promise`
providing typing information for lazy translation strings.

In places where the callee evaluates the `_StrPromise` object in all
cases we simply force the evaluation with `str()`. This includes
`JsonableError` that ends up handled by the error handler middleware,
and `internal_send_stream_message` that depends on `check_stream_topic`,
requiring the `topic` to be evaluated anyway. In other siuations, the
callee is expected to be able to handle `StrPromise` explicitly.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-29 10:52:45 -07:00
..
__init__.py
alert_words.py actions: Split out zerver.actions.alert_words. 2022-04-14 17:14:31 -07:00
bots.py bots: Allow changing bot owner without an acting_user. 2022-08-12 17:08:04 -07:00
create_realm.py read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -07:00
create_user.py user_groups: Add FULL_MEMBERS_GROUP_NAME constant. 2022-08-11 04:38:36 -07:00
custom_profile_fields.py custom_profile_fields: Delete invalid values for select-type fields. 2022-07-15 16:33:15 -07:00
default_streams.py typing: Broaden type annotations for QuerySet compatibility. 2022-07-07 11:27:42 -07:00
hotspots.py actions: Split out zerver.actions.hotspots. 2022-04-14 17:14:31 -07:00
invites.py billing: Fix licenses amount check during user signup/invitation. 2022-08-18 11:56:54 -07:00
message_edit.py i18n: Deal with lazy strings more carefully. 2022-08-29 10:52:45 -07:00
message_flags.py Revert "message_flags: Filter msgs having (or not) the flag before updating." 2022-07-21 14:29:54 -07:00
message_send.py message_send: Add service_queue_events to SendMessageRequest. 2022-07-30 18:03:56 -07:00
muted_users.py actions: Split out zerver.actions.muted_users. 2022-04-14 17:14:36 -07:00
presence.py settings: Send presence update event toggling presence_enabled. 2022-08-25 12:30:12 -07:00
reactions.py actions: Split out zerver.actions.reactions. 2022-04-14 17:14:35 -07:00
realm_domains.py realm_domains: Type QuerySet.values as RealmDomainDict. 2022-07-07 11:27:42 -07:00
realm_emoji.py actions: Use transaction.atomic for do_remove_realm_emoji. 2022-07-31 18:32:28 -07:00
realm_export.py actions: Split out zerver.actions.realm_export. 2022-04-14 17:14:31 -07:00
realm_icon.py realm_audit_log: Explicitly stringify dict before insertion. 2022-07-26 09:48:33 -07:00
realm_linkifiers.py actions: Use transaction.atomic for do_remove_linkifier. 2022-07-31 18:32:28 -07:00
realm_logo.py actions: Split out zerver.actions.realm_logo. 2022-04-14 17:14:31 -07:00
realm_playgrounds.py actions: Split out zerver.actions.realm_playgrounds. 2022-04-14 17:14:30 -07:00
realm_settings.py message_edit: Make zero invalid value for message_content_edit_time_limit_seconds. 2022-08-12 18:09:53 -07:00
streams.py i18n: Deal with lazy strings more carefully. 2022-08-29 10:52:45 -07:00
submessage.py actions: Split out zerver.actions.submessage. 2022-04-14 17:14:30 -07:00
typing.py actions: Split out zerver.actions.typing. 2022-04-14 17:14:30 -07:00
uploads.py uploads: Avoid redefinition of a variable. 2022-07-26 18:00:24 -07:00
user_activity.py actions: Split out zerver.actions.user_activity. 2022-04-14 17:14:32 -07:00
user_groups.py user_groups: Add MEMBERS_GROUP_NAME constant. 2022-08-11 04:38:36 -07:00
user_settings.py settings: Send presence update event toggling presence_enabled. 2022-08-25 12:30:12 -07:00
user_topics.py muted_topics: Clean up unmute topic event code duplication. 2022-08-04 17:44:00 -07:00
users.py python: Use a real parser for email addresses. 2022-07-29 15:47:33 -07:00
video_calls.py