zulip/zerver/lib
Steve Howell 1d95812770 Add is_admin to page_params.
Because full_name and is_admin changes go through many similar,
generic codepaths, it is almost more work at this point to keep
is_admin out of page_params as it is to just put it in.  So
I put it in.  This should pave the path for showing admins in
the GUI.

This commit actually starting by my adding a test
that calling apply_events() with the notification you get
when calling do_change_is_admin() updates
state['realm_users'] to be similar to what you would get
out of fetch_initial_state_data().  We didn't have test coverage
there before.  Making that test pass forced my hand to
either add is_admin to page_params or to special-case
apply_events() not to update page_params with is_admin.  I
chose the former approach.

(imported from commit 1e49d59c66540014284529c29d5007224be6a0c6)
2014-01-24 16:34:12 -05:00
..
bugdown bugdown: support modal in-app links in messages. 2014-01-23 17:06:29 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Add is_admin to page_params. 2014-01-24 16:34:12 -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.py Flush memcached on a stream privacy change. 2014-01-15 17:13:56 -05:00
cache_helpers.py Support filling memcached caches with no messages. 2013-11-13 12:07:16 -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 Handle duplicate GCM registrations by dropping the old ones. 2014-01-23 19:21:28 -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] Use socket req ids that contain queue ids 2014-01-23 16:28:58 -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