zulip/zerver
Steve Howell 6b93315cc3 Prevent browser errors for stream: searches.
When we typed "stream:" into the search bar, the empty operand
triggered an error in the Dict class for an undefined key, because
we were using opts[0] as a "defensive" workaround to opts.operand,
but opts.operand of '' is more correct than opts[0] being undefined.

Now we only fall back to opts[0] whe opts.operand is undefined, and
we emit a blueslip error when that happens.

(imported from commit 88a196d3bc3d67689c36bc036f378da744c652f9)
2014-02-10 15:11:43 -05:00
..
fixtures bugdown: Match up to 8 groups of nested parens 2014-02-06 17:26:01 -05:00
lib Don't send stream-does-not-exist emails for deactivated realms 2014-02-10 13:23:28 -05:00
management Enable digest emails for CUSTOMER4. 2014-02-10 13:53:39 -05:00
migrations Add missing stream field to schema migration 0067. 2014-02-05 13:35:41 -05:00
templatetags Add a custom template filter for formatting displaying lists of items in emails. 2013-10-25 19:11:40 -04:00
tests/frontend Prevent browser errors for stream: searches. 2014-02-10 15:11:43 -05:00
views Return stream_id in /json/get_public_streams. 2014-02-06 12:09:52 -05:00
worker Add helper function for returning a Redis client 2014-02-10 13:23:28 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py Fix documentation for email gateway on Zulip Enterprise. 2013-12-04 16:39:39 -05:00
decorator.py Improve Backend for Github integration 2014-01-22 16:44:34 -05:00
exceptions.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
filters.py Add api_key to filtered variables. 2013-12-12 10:31:03 -05:00
finders.py [manual] Move our deployment scripts to scripts/. 2013-10-28 10:54:48 -04:00
forms.py [manual] Allow signups for emails held by non-MIT mirror dummy accounts. 2014-01-10 21:38:59 -05:00
handlers.py Remove old email error reporting handler 2013-11-13 16:22:21 -05:00
middleware.py Blacklist more paths, and fix paths with / to use . instead 2014-02-03 14:06:58 -05:00
models.py Make enter sends the default. 2014-02-05 13:35:41 -05:00
openid.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
retention_policy.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
static_header.txt Update copyright to 2014. 2014-02-04 15:51:53 -05:00
storage.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
test_bugdown.py Fix autolinkification in Zephyr mirrored content. 2014-02-10 13:23:27 -05:00
test_decorators.py Move some code into test_decorators.py 2014-02-10 13:23:27 -05:00
test_events.py Use stream_id as key for subscription removals. 2014-02-10 13:23:27 -05:00
test_external.py Extract test_external.py 2014-01-31 13:14:19 -05:00
test_hooks.py Extract test_hooks.py. 2014-01-29 10:56:00 -05:00
test_messages.py Split out zerver/test_messages.py. 2014-01-31 11:22:49 -05:00
test_signup.py Add backend tests for group signups. 2014-01-31 17:12:10 -05:00
test_subs.py Use stream_id as key for subscription removals. 2014-02-10 13:23:27 -05:00
test_unread.py Move some tests into test_unread.py 2014-02-10 13:23:27 -05:00
tests.py Move some tests into test_unread.py 2014-02-10 13:23:27 -05:00
tornado_callbacks.py Remove stray } from name of queue 2014-01-29 15:46:04 -05:00
tornadoviews.py Add support for event queues with an included narrow. 2013-12-12 17:36:39 -05:00