Tim Abbott
8487a24a6c
socket: Hardcode website message sender for fake messages.
2017-02-17 15:20:32 -08:00
Tim Abbott
680d30adc2
docs: Add comments linking to new events doc.
2017-02-11 16:59:28 -08:00
Tim Abbott
4e171ce787
lint: Clean up E126 PEP-8 rule.
2017-01-23 22:06:13 -08:00
Tim Abbott
22d1aa396b
lint: Clean up W503 PEP-8 warning.
2017-01-23 20:50:04 -08:00
Tim Abbott
bde2da7dfd
lint: clean up PEP-8 W391 rule.
2017-01-23 20:39:02 -08:00
Tim Abbott
42612161df
tornado: Remove unused caching code.
2017-01-19 16:36:31 -08:00
Tim Abbott
007d4becfd
Revert "update-sockjs: Update sockjs from version 0.3.4 to 1.1.1."
...
This reverts commit 7bf10ec74f
.
Apparently, SockJS 1.1.1 is broken with the browser used in our legacy
desktop app, resulting in messages being silently not sent.
2017-01-10 11:46:15 -08: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
K.Kanakhin
0d8c18a6dd
nagios-plugins: Add websocket checking to nagios message sending test.
...
- Add websocket client to create connection with SockJS websocket server.
It contains callback method to launch after connection setup.
- Add '--websocket' parameter to 'check_send_receive_time' script to
check websocket connection.
- Add testing websocket connection to production installation checking.
- Add cronjob to launch websocket connection nagios test.
This makes it possible for Zulip Nagios monitoring to check for
problems impacting the websockets sending code path, which is what all
web users use.
2016-12-30 15:36:37 -08:00
Juan Verhook
cfa9c2eaf2
mypy: Update zerver directory to use Text
2016-12-29 09:12:15 -08:00
Rafid Aslam
e49bd6a6c7
event_queue: Improve error message for ConnectionError exception
...
Improve error message for "ConnectionError:
HTTPConnectionPool(host='localhost', port=9993): Max retries
exceeded" exception.
Fixes #215 .
2016-12-20 11:49:12 -08:00
Rafid Aslam
78f3fd7999
API: Expose `is_mentioned` in `message` dictionary.
...
Expose `is_mentioned` in `message` dict which contains
boolean value about our account is mentioned in the message
content or not.
This is already available via `flags`, but it seems worth making this
data point more explicit, given its importance in writing bots.
Fixes #2667 .
2016-12-14 10:52:13 -08:00
K.Kanakhin
7bf10ec74f
update-sockjs: Update sockjs from version 0.3.4 to 1.1.1.
...
- Add browserify to npm dependencies.
- Add SockJS-client to npm dependencies.
- Add npm postinstall script to generate browser version of SockJS-client
from npm package.
- Change deprecated SockJS object property 'protocol_whitelist' to
'transports'.
- Fix settings.
2016-12-05 21:36:10 -08:00
Reid Barton
ecfa397567
Fix several type annotations for mypy 0.4.6 compatibility.
...
A few functions had arguments removed without having their type
annotations updated accordingly. As a result mypy version 0.4.6
thinks that the first type in the annotation is supposed to be
the type of `self`, a new mypy feature which we are not intending
to use here.
2016-12-03 13:45:52 -08:00
nikolay
abc2ff4a06
pep8: Fix many rule E128 violations.
...
[Tweaked by tabbott to adjust some approaches used in wrapping]
2016-12-03 13:33:31 -08:00
bulat22101
a6f91064a2
pep8: Fix E129 violations
2016-12-03 10:56:36 -08:00
Sidhant Bhavnani
8c0c12c1d9
pep8: Fix E303 violations.
2016-12-02 15:34:11 -08:00
AZtheAsian
1ba150fa85
pep8: Fix E203 violations
2016-12-01 20:37:57 -08:00
AZtheAsian
f7582f0050
pep8: Fix E124 violations
2016-12-01 14:18:11 -08:00
Tommy Ip
46b7d54b3e
pep8: Fix E701 violations.
2016-11-30 20:45:09 +00:00
Rafid Aslam
41bd88d5ed
pep8: Fix E301 pep8 violations.
...
Fix "E301: expected (1 or 2) blank line" pep8 violations.
2016-11-29 08:51:44 -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
Tim Abbott
169d404579
tornado: Move zerver.lib.handlers into zerver.tornado.handlers.
...
This cleans up the confusingly duplicated file names, while also
moving more of the Tornado-specific code under zerver/tornado/.
2016-11-26 22:29:28 -08:00
Tim Abbott
d75f49b119
tornado: Move descriptor dict management code to handlers.py.
2016-11-26 22:29:28 -08:00
Tim Abbott
282f74609c
tornado: Move socket code to zerver/tornado/.
2016-11-26 22:29:27 -08:00
Tim Abbott
f2782971e0
tornado: Clean up AsyncDjangoHandler Python style.
2016-11-26 22:05:04 -08:00
Tim Abbott
b83361bcfc
tornado: Extract create_tornado_application helper.
2016-11-26 21:43:13 -08:00
Tim Abbott
9e9066f77a
tornado: Extract AsyncDjangoHandler to its own file.
2016-11-26 21:43:11 -08:00
Tim Abbott
8739f4d9f1
tornado: Move tornado_ioloop_logging to new zerver/tornado tree.
2016-11-26 21:24:05 -08:00