neiljp (Neil Pilgrim)
f184249191
mypy: Clarify valid types in tornado views via new variable.
2018-02-13 11:40:52 -08:00
rht
185fd99816
mypy: Use Python 3 type syntax in several files.
2017-12-30 07:34:51 -05:00
Tim Abbott
dc8dd2333c
tornado: Sort imports in files with no merge conflicts.
2017-11-15 15:53:11 -08:00
Steve Howell
2bbfda041a
Support client_gravatar field for event registration.
...
This commit allows clients to register client_gravatar=True, and
then we recognize that flag for message events. If the flag is
True, we will not calculate gravatar URLs and let the clients do
it themselves. (Clients can calculate gravatar URLs based on
emails with just a little bit of code.)
2017-11-07 10:42:17 -08:00
Greg Price
68b0a419ec
decorator: Cut a bunch of dead imports of two view decorators.
...
Saw these when grepping for these two decorators; they're actually
more numerous than the surviving use sites are. Cut out the noise.
2017-11-04 19:27:00 -07:00
rht
1047733486
zerver/tornado: Use python 3 syntax for typing.
2017-10-26 21:58:22 -07:00
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