zulip/zerver/lib
Steve Howell bc6da3717f Fix obscure bug with page_params.is_bot.
If a name change event arrived during the call to
fetch_initial_state_data(), we would call apply_events() to
update the data structure that eventually becomes page_params.
Our update code, instead of surgically updating the fields, was
just overwriting the record, which led to is_bot being taken
out of the record when only full_name was in the event.

Apart from fixing the "update" case to do the right thing,
this commit also does a bit of cleanup on the code handling
"realm_user" events to make it more generic in how it does
add/remove/update.  If we could standardize our events a bit
more, this could eventually lead to DRYing up some of the
apply_events() code.

(imported from commit 772e2fcd6a5605ccb6e8d1bc499b5f336934cf3c)
2014-01-23 13:01:04 -05:00
..
bugdown Add custom markdown tag to render a stream subscribe button 2014-01-22 11:28:31 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Fix obscure bug with page_params.is_bot. 2014-01-23 13:01:04 -05:00
alert_words.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
avatar.py Allow overriding the default avatar image 2013-11-18 11:48:53 -05:00
bulk_create.py [schema] Add a bit for whether inactive users are mirror dummies. 2014-01-09 11:08:35 -05:00
cache_helpers.py Support filling memcached caches with no messages. 2013-11-13 12:07:16 -05:00
cache.py Flush memcached on a stream privacy change. 2014-01-15 17:13:56 -05:00
ccache.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
context_managers.py Use os.path directly rather than sometimes importing it separately. 2013-10-28 15:44:13 -04:00
create_user.py [schema] Add a bit for whether inactive users are mirror dummies. 2014-01-09 11:08:35 -05:00
db.py Do query time tracking at the psycopg2 level instead of the Django level 2014-01-14 11:47:12 -05:00
debug.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
digest.py Log the actual sending of digest emails in addition to queuing possible ones. 2014-01-10 21:38:59 -05:00
email_mirror.py Let message recipient in process_message be passed as an argument. 2014-01-15 16:07:18 -05:00
event_queue.py Don't log exceptions that we know aren't bugs when adding events to event queues 2014-01-03 14:40:55 -05:00
html_diff.py Make built-in bots come from settings.py, and allow localserver-specific ones 2013-11-01 14:13:05 -04:00
initial_password.py Only create initial passwords for local dev setups 2013-11-12 22:42:05 -05:00
logging_util.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
mandrill_client.py [schema] Add ScheduledJob table, and update mandrill related code 2013-11-13 16:41:36 -05:00
mention.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
narrow.py Add support for event queues with an included narrow. 2013-12-12 17:36:39 -05:00
parallel.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
push_notifications.py Use the feedback connection for getting APNS feedback 2014-01-22 13:50:15 -05:00
query.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
queue.py Simplify callback protocol for register_json_consumer(). 2013-10-31 13:18:11 -04:00
rate_limiter.py [schema] Support for authenticating Deployments via the API. 2013-10-25 14:13:30 -04:00
response.py Have rest_dispatch return JSON when exceptions are thrown. 2013-12-13 17:38:20 -05:00
rest.py Report json format 500 errors from all json format views. 2013-12-19 16:48:51 -05:00
socket.py socket: Don't throw traceback when sessions are expired. 2013-12-19 16:52:53 -05:00
statistics.py Add tool to query our usage stats as of a given date. 2013-12-17 15:34:44 -05:00
timeout.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
timestamp.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tornado_ioloop_logging.py Support Tornado 3 2014-01-10 21:39:06 -05:00
unminify.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
upload.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
user_agent.py Add script to parse user agents with historical data set. 2013-12-13 11:26:36 -05:00
utils.py Move to a common random token generation function instead of several one-offs. 2013-08-09 14:59:26 -04:00
validator.py Add blank line to check_list (cosmetic). 2013-12-18 12:47:32 -05:00