zulip/zerver/lib
Steve Howell 8616a4ebc5 Use client_gratavar=True for users on in page_params.
This change affects realm_users and realm_non_active_users.

Note that we still send full avatar urls in realm_user/add
events, so apply_events has to do something mildly hacky to
turn the avatar_url to None in that case.

Fixing the event is probably not worth the trouble, as single
urls are not bandwidth hogs; we only need this optimization
for bulk data.
2017-11-07 16:38:14 -08:00
..
bugdown zerver/lib: Remove unused imports (F401). 2017-11-07 16:37:13 -08:00
url_preview mypy: Add explicit Any type parameters for embedded data Dicts. 2017-11-07 11:26:46 -08:00
webhooks zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
__init__.py
actions.py refactor: Remove six.moves.filter import. 2017-11-07 10:51:44 -08:00
addressee.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
alert_words.py zerver/lib: remove `import six`. 2017-09-27 19:10:28 -07:00
attachments.py settings: Show error or success message when deleting uploaded files. 2017-09-27 17:50:22 -07:00
avatar.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
avatar_hash.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
bot_lib.py refactor: Remove six.moves.configparser import. 2017-11-07 10:51:44 -08:00
bot_storage.py embedded bots: Move StateHandler query logic to separate file. 2017-10-30 13:37:56 -07:00
bulk_create.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
cache.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
cache_helpers.py Cache only one row per message. 2017-10-26 16:35:28 -07:00
camo.py pep8: Add compliance with rule E261 to camo.py. 2017-05-07 23:21:50 -07:00
ccache.py zerver/lib: remove `import six`. 2017-09-27 19:10:28 -07:00
context_managers.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
create_user.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
db.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
debug.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
digest.py tests: Call real consume method of queue processors. 2017-10-26 14:58:03 -07:00
domains.py Add stricter domain validation and improve error messages. 2017-01-26 17:24:25 -08:00
email_mirror.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
emoji.py reactions: Switch to using `name_to_codepoint`. 2017-10-04 23:09:14 -07:00
error_notify.py error_notify: Add IP address to browser error reports. 2017-10-04 13:46:05 -07:00
events.py Use client_gratavar=True for users on in page_params. 2017-11-07 16:38:14 -08:00
exceptions.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
export.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
feedback.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
fix_unreads.py mypy: Clarify Callable parameters & return type for get_timing. 2017-10-31 00:02:17 -07:00
generate_test_data.py py3: Remove "from six.moves import range". 2017-10-17 23:28:14 -07:00
hotspots.py hotspots: Use tutorial_status to manage whether we show hotspots. 2017-09-15 04:14:52 -07:00
html_diff.py html_diff: Migrate from `Text` to `str`. 2017-10-30 14:10:35 -07:00
i18n.py refactor: Remove six.moves.zip_longest import. 2017-11-07 10:51:44 -08:00
initial_password.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
integrations.py refactor: Remove six.moves.map import. 2017-11-07 10:46:42 -08:00
logging_util.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
management.py zerver/lib: Remove print_function. 2017-09-27 18:05:45 -07:00
mention.py user-groups: Add basic backend for UserGroup model. 2017-10-31 15:16:14 -07:00
message.py Restructure send-message code for gravatars. 2017-11-07 10:36:02 -08:00
migrate.py zerver/lib: Remove print_function. 2017-09-27 18:05:45 -07:00
mobile_auth_otp.py refactor: Remove six.moves.zip import. 2017-11-07 10:46:42 -08:00
name_restrictions.py name_restrictions: Update with new competitors and portico pages 2017-07-26 12:10:58 -04:00
narrow.py Update narrow.py, messages.py to support is:unread. 2017-06-19 06:51:13 -04:00
notifications.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
onboarding.py actions.py: Rename `do_add_reaction()` to `do_add_reaction_legacy()`. 2017-10-31 15:42:35 -07:00
outgoing_webhook.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
parallel.py mypy: Improve type annotation of run_parallel in zerver/lib/parallel.py. 2017-11-04 16:18:27 -07:00
profile.py mypy: Improve typing to profile.py & remove FuncT from decorator.py. 2017-10-29 17:10:13 -07:00
push_notifications.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
queue.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
rate_limiter.py refactor: Remove six.moves.zip import. 2017-11-07 10:46:42 -08:00
realm_icon.py zerver/lib: Remove u prefix from strings. 2017-11-03 15:34:37 -07:00
redis_utils.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
request.py refactor: Remove six.moves.zip import. 2017-11-07 10:46:42 -08:00
request.pyi mypy: Improve typing of request.pyi (REQ). 2017-11-04 20:26:03 -07:00
response.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
rest.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
retention.py zerver/lib: Remove print_function. 2017-09-27 18:05:45 -07:00
send_email.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
sessions.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
soft_deactivation.py mypy: Clarify types in add_missing_messages in soft_deactivation.py. 2017-11-07 11:26:46 -08:00
sqlalchemy_utils.py mypy: Remove a bunch of now-unnecessary type: ignore annotations. 2016-10-17 11:48:34 -07:00
statistics.py zerver/lib: Remove from __future__ import *. 2017-09-28 10:14:03 -07:00
str_utils.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
stream_recipient.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
stream_subscription.py mypy: Fix QuerySet -> QuerySet[Subscription]. 2017-10-30 16:33:51 -07:00
stream_topic.py zerver/lib: Remove inheritance from object. 2017-11-06 08:53:48 -08:00
streams.py Extract get_stream_recipient(). 2017-10-28 17:57:39 -07:00
subdomains.py alias domains: Add a v1 of this feature. 2017-11-03 13:38:59 -07:00
test_classes.py zerver/lib: Remove unused imports (F401). 2017-11-07 16:37:13 -08:00
test_data.source.txt test_data.source.txt: Replace postmodernism generator text with a play. 2017-08-23 13:00:39 -07:00
test_fixtures.py refactor: Remove six.moves.StringIO import. 2017-11-07 10:51:44 -08:00
test_helpers.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
test_runner.py mypy: set SubSuiteList to inherit from typed List. 2017-11-07 11:39:21 -08:00
tex.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
timeout.py py3: Remove "from six.moves import range". 2017-10-17 23:28:14 -07:00
timestamp.py analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
timezone.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
topic_mutes.py zerver/lib: Remove unused imports (F401). 2017-11-07 16:37:13 -08:00
type_debug.py mypy: Add explicit Any for generic types in type_debug.py. 2017-11-04 19:47:44 -07:00
unminify.py refactor: Remove six.moves.map import. 2017-11-07 10:46:42 -08:00
upload.py Change urllib import to be Python 3-specific. 2017-11-07 10:46:42 -08:00
user_agent.py tests: Replace test_user_agent_parsing with a normal test. 2017-09-16 03:56:18 -07:00
user_groups.py user-groups: Add basic backend for UserGroup model. 2017-10-31 15:16:14 -07:00
users.py zerver/lib: Remove absolute_import. 2017-09-27 10:00:39 -07:00
utils.py refactor: Remove six.moves.zip_longest import. 2017-11-07 10:51:44 -08:00
validator.py zerver/lib: remove `import six`. 2017-09-27 19:10:28 -07:00