zulip/zerver/lib
Hemanth V. Alluri f1f0a26c37 drafts: Extract all of the real work to lib functions.
The main reason why this is needed is because this seems to be
convention and because we can't easily test event creation without
doing this.

Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
2021-07-28 16:33:01 -07:00
..
markdown fenced_code: Optimize FENCE_RE to fix cubic worst-case complexity. 2021-07-22 16:40:44 -07:00
url_preview python: Convert deprecated Django smart_text alias to smart_str. 2021-04-15 18:01:34 -07:00
webhooks mypy: Fix most AnonymousUser type errors. 2021-07-24 14:55:46 -07:00
__init__.py
actions.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
addressee.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
alert_words.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
attachments.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
avatar.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
avatar_hash.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
bot_config.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
bot_lib.py embedded bot: Return message id for send_message and send_reply. 2021-04-28 08:32:21 -07:00
bot_storage.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
bulk_create.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
cache.py models: Add optional realm_id argument to get_system_bot. 2021-07-26 15:31:10 -07:00
cache_helpers.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
camo.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
ccache.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
compatibility.py compatibility: Shift functions to new module. 2021-06-05 07:33:25 -07:00
context_managers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
create_user.py settings: Remove timezone from UserProfile.property_types. 2021-07-08 12:52:29 -07:00
data_types.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
db.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
debug.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
dev_ldap_directory.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
digest.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
display_recipient.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
domains.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
drafts.py drafts: Extract all of the real work to lib functions. 2021-07-28 16:33:01 -07:00
email_mirror.py bots: Assume STAFF_SUBDOMAIN to be the realm where ERROR_BOT lives. 2021-07-27 15:51:59 -07:00
email_mirror_helpers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
email_notifications.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
email_validation.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
emoji.py realm: Extend add_custom_emoji_policy to use COMMON_POLICY_TYPES. 2021-07-27 16:41:23 -07:00
error_notify.py bots: Assume STAFF_SUBDOMAIN to be the realm where ERROR_BOT lives. 2021-07-27 15:51:59 -07:00
event_schema.py user_status: Add backend changes to support status emoji. 2021-07-27 17:57:15 -07:00
events.py user_status: Add backend changes to support status emoji. 2021-07-27 17:57:15 -07:00
exceptions.py exceptions: Use HTTP 401 code for authentication errors. 2021-07-08 10:33:08 -07:00
export.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
external_accounts.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
fix_unreads.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
generate_test_data.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
github.py github: Update macOS dmg filename pattern. 2021-07-21 19:03:39 -07:00
home.py request: Store client information using ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
hotspots.py docs: Fix spelling errors caught by codespell. 2021-04-26 09:31:08 -07:00
html_diff.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
html_to_text.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
i18n.py request: Move miscellaneous attributes to ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
import_realm.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
initial_password.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
integrations.py docs: Correct Big Blue Button to BigBlueButton. 2021-07-05 16:59:00 -07:00
logging_util.py request: Store client information using ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
management.py settings: Remove now-unnecessary EMAIL_DELIVERER_DISABLED setting. 2021-05-18 12:39:28 -07:00
mdiff.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
mention.py refactor: Export non-markdown logic in mention.py. 2021-06-14 13:26:30 -07:00
message.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
migrate.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
mobile_auth_otp.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
name_restrictions.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
narrow.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
notification_data.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
onboarding.py bots: Pass realm to get_system_bot calls in onboarding.py. 2021-07-26 15:33:13 -07:00
outgoing_http.py minor: Properly unpack `kwargs`. 2021-06-09 12:17:26 -07:00
outgoing_webhook.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
presence.py models: Replace __id syntax with _id where possible. 2021-04-22 14:53:00 -07:00
profile.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
push_notifications.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
pysa.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
queue.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
rate_limiter.py rate_limiter: Avoid strong reference to user. 2021-07-20 10:32:29 -07:00
realm_description.py markdown: Refactor out additional properties added to Message. 2021-06-24 18:14:53 -07:00
realm_icon.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
realm_logo.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
redis_utils.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
remote_server.py mypy: Extend type for post_data in send_to_push_bouncer. 2021-07-24 12:55:15 -07:00
request.py request: Weaken ZulipRequestNotes.tornado_handler reference. 2021-07-19 16:48:23 -07:00
response.py json_error: Completely remove json_error. 2021-07-06 15:34:33 -07:00
rest.py request: Move miscellaneous attributes to ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
retention.py models: Pass realm to get_user_including_cross_realm calls. 2021-07-26 15:33:13 -07:00
send_email.py backend: Add None-checks with assertions and if-elses. 2021-07-24 15:00:21 -07:00
server_initialization.py bots: Pass realm to get_system_bot call in server_initialization.py. 2021-07-26 15:33:13 -07:00
sessions.py sessions: Use SessionBase instead of Session. 2021-07-24 09:54:21 -07:00
soft_deactivation.py typing: Use assertions for function arguments. 2021-07-26 14:48:45 -07:00
sqlalchemy_utils.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
statistics.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
storage.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
stream_subscription.py bulk_access_messages: Bulk fetch Subscription details. 2021-05-12 16:23:22 -07:00
stream_topic.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
streams.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
subdomains.py subdomains: Extend "static" to include resources hosted on S3. 2021-06-08 15:28:10 -07:00
templates.py api docs: Replace most markdown files with a common template. 2021-06-24 10:42:08 -07:00
test_classes.py notifications: Calculate PMs/mentions settings like other settings. 2021-07-28 13:55:25 -07:00
test_console_output.py requirements: Upgrade Python requirements. 2021-07-05 12:23:06 -07:00
test_data.source.txt docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
test_fixtures.py puppeteer_tests: Reset test environment after each run. 2021-03-25 12:58:36 -07:00
test_helpers.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
test_runner.py requirements: Upgrade Python requirements. 2021-07-05 12:23:06 -07:00
tex.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
timeout.py timeout: Remove unnecessary varargs support. 2021-02-15 17:05:28 -08:00
timestamp.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
timezone.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
topic.py resolve topic: Add `is:resolved` search keyword/filtering support. 2021-07-13 23:18:41 -07:00
topic_mutes.py models: Remove MutedTopic alias for UserTopic. 2021-07-28 10:25:54 -07:00
transfer.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
type_debug.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
types.py refactor: Export non-markdown logic in mention.py. 2021-06-14 13:26:30 -07:00
unminify.py unminify: Fix lookup if source map does not exist in disk. 2021-03-16 14:46:18 -07:00
upload.py typing: Use assertions for function arguments. 2021-07-26 14:48:45 -07:00
url_encoding.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
user_agent.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
user_groups.py models: Use COMMON_POLICY_TYPES for user_group_edit_policy. 2021-07-14 14:38:44 -07:00
user_mutes.py typing: Use assertions for function arguments. 2021-07-26 14:48:45 -07:00
user_status.py user_status: Add backend changes to support status emoji. 2021-07-27 17:57:15 -07:00
users.py bots: Rename is_cross_realm_bot API field to is_system_bot. 2021-07-24 15:46:40 -07:00
utils.py utils: Add a helper function for None-checks. 2021-07-26 14:46:45 -07:00
validator.py request: Map HttpRequest to ZulipRequestNotes for typing. 2021-07-14 11:52:42 -07:00
widget.py poll widget: Add server validation. 2021-06-14 17:46:16 -07:00
zcommand.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
zephyr.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00