rht
74fd3d9f31
zerver/tornado: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Greg Price
0d2f7e8bcd
errors: Eliminate redundant `json_response_to_error` calls.
2017-07-25 15:33:11 -07:00
Greg Price
709c3b50fc
tornado: Use a machine-readable error code when an event queue is gone.
...
This fixes the original issue that #5598 was the root cause of; when
the user returns to a Zulip browser tab after they've been idle past
the timeout (10 min, per IDLE_EVENT_QUEUE_TIMEOUT_SECS), we now
correctly reload the page even if they're using Zulip in German or
another non-English language where we have a translation for the
relevant error message.
2017-07-24 16:41:22 -07:00
Greg Price
45b718a2a2
tornado: Use the new structured JsonableError API for /json/events errors.
2017-07-24 16:41:22 -07:00
Tim Abbott
cbc731963f
decorator: Add support for Django internal_notify_view.
2017-04-18 09:59:07 -07:00
Rishi Gupta
cf762eaf84
Change X.realm.id to X.realm_id across codebase.
...
This makes it more clearly the pattern in the Zulip codebase, and thus
decreases the risk of accidentally doing database queries.
2017-01-03 16:46:26 -08:00
Juan Verhook
cfa9c2eaf2
mypy: Update zerver directory to use Text
2016-12-29 09:12:15 -08:00
Tim Abbott
3d1bcb05e1
tornado: Move event_queue.py to zerver/tornado/.
...
Fixes #729 .
2016-11-26 22:29:28 -08:00
Tim Abbott
1fcf2ff525
tornado: Move zerver.tornadoviews to zerver.tornado.views.
...
This furthers the overall goal of moving all the Tornado-specific code
to zerver/tornado/.
2016-11-26 22:29:28 -08:00