Reid Barton
3dda07bad0
bots: Move zephyr-related files to api/integrations/zephyr/.
2017-05-26 15:07:02 -07:00
umkay
b404fb3672
mypy: Change type annotation from union to explicit set
2017-05-22 13:47:55 -07:00
Tim Abbott
fed5180d19
zephyr_mirror: Avoid transmitting null characters to server.
2017-05-10 11:52:34 -07:00
Tim Abbott
951c5588b6
zephyr_mirror: Add support for discuss-format messages.
2017-05-10 11:52:34 -07:00
Aditya Bansal
65a6460d6e
pep8: Add compliance with rule E261 to zephyr_mirror_backend.py.
2017-05-07 23:21:50 -07:00
Jacob Hurwitz
baefa61edf
[zephyr_mirror] add support for zcrypt'ed classes with colons
...
The regex used for parsing .crypt-table didn't allow colons in class
names. This commit changes the [^:] token with \S, meaning that class
names can now contain colons but can no longer contain whitespace.
I think this should be fine, since zcrypt is only used for MIT zephyr,
where (by convention) class names do not contain whitespace.
Additionally, it should not be possible for us to accidentally consume a
field-separating colon as part of the class capture group because the
regex enforces that all field-separating colons are followed by one or
more whitespace characters, whereas the class name cannot contain
whitespace.
2017-03-19 22:30:21 -07:00
Tim Abbott
fa67e87d3d
mypy: Fix some new errors flagged by latest mypy master.
...
Mostly list -> List bugs in annotations.
2017-03-19 21:03:45 -07:00
Raghav Jajodia
58f5e729b6
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Rishi Gupta
6c47fa77b6
Use time.time() instead of datetime.now() to measure elapsed time.
...
Both because it is more idiomatic and because we will soon start enforcing
that all datetimes in Zulip are timezone aware.
2017-03-01 22:54:28 -08:00
Tim Abbott
07cdd69e42
lint: Clean up W503 PEP-8 warning.
2017-01-23 20:50:04 -08:00
JefftheBest1
5e95dc3bdc
Fixed typos with threshold.
2017-01-12 04:50:20 -08:00
Tommy Ip
d5690c80c9
bots: Fix bare except clause.
2017-01-09 00:39:33 +00:00
reallyly
9d6e7cfea5
pep8: Fix E128 violations.
...
With some line-wrapping tweaks by tabbott.
2016-12-13 10:50:14 -08:00
anirudhjain75
92981590f5
Annotate zephyr_mirror_backend.py.
...
With some tweaks by tabbott to update tuple->Tuple and update comments.
2016-12-07 15:57:55 -08:00
nikolay
cc5444a725
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
47488217b1
pep8: Fix E129 violations
2016-12-03 10:56:36 -08:00
AZtheAsian
e410264372
pep8: fix E201 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
439dc8ca96
pep8: fix E202 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
418f396b32
pep8: Fix E203 violations
2016-12-01 20:37:57 -08:00
Bickio
bc9bb4287d
pep8: Fix E125.
2016-11-30 20:03:29 -08:00
Tim Abbott
b46aa33656
lint: Ban lines longer than 140 characters without #ignorelongline.
2016-08-19 12:03:09 -07:00
Tim Abbott
7b80e9bcc4
zephyr_mirror_backend: Update support email address.
...
Arguably we should figure out a way to make this fetch the support
email from the server (or something), but in the short term it seems
worth making the email address at least correct.
2016-08-17 22:39:08 -07:00
Eklavya Sharma
a21cb61b3f
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Tim Abbott
2b386921f0
Finish purging 'fromt typing import *' from Zulip codebase.
2016-04-07 14:11:21 -07:00
Tim Abbott
dd4fe7e099
Add PEP-484 annotations to bots/.
2016-04-03 15:40:23 -07:00
Eklavya Sharma
5e3013d2c2
Partially apply Python 3 libmodernize.fixes.fix_dict_six.
...
Refer to #256
2016-03-19 15:52:58 -07:00
Tim Abbott
91d851c448
Apply modernize transform libmodernize.fixes.fix_file.
...
This replaces use of file() with open() which is python 3 compatible,
and also adds it to our python 3 support test suite.
2016-01-26 21:09:42 -08:00
Tim Abbott
e4f85d2462
Use new-style classes consistently for Python 3 support.
...
Also add the fixer for this to our list of fixers we check.
2015-11-04 08:01:52 -08:00
Tim Abbott
c5e2995b6e
Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six.
2015-11-01 09:35:06 -08:00
Tim Abbott
3cfe157299
Apply Python 3 futurize transform libmodernize.fixes.fix_map.
2015-11-01 09:35:05 -08:00
Steven Oud
b0325fef5b
Consistently use /usr/bin/env python2.7 in shebangs and commands.
2015-10-21 22:58:21 +00:00
Tim Abbott
aed2e0d2f9
Remove certain hardcoded email addresses in Zephyr mirroring.
...
(imported from commit 9fd492b5463f04741558687f27522d48a5dc795b)
2015-09-20 00:36:12 -07:00
Zev Benjamin
8829e654c1
zephyr_mirror: Specify a z_charset of utf-8
...
andersk reports that we are "incorrectly sending outgoing zephyrs with z_charset
= ZCHARSET_ISO_8859_1, which breaks zwgc (other clients tend to ignore
z_charset). I'm assuming you're shelling out to zwrite; you need to use zwrite
-x UTF-8, or export LC_ALL=en_US.UTF-8."
(imported from commit 8abb28bf8acbe0b5aa99ca13faab24e1e554a031)
2014-05-20 17:29:29 -07:00
Zev Benjamin
41a782e011
Move backoff classes to the Zulip API
...
(imported from commit 76c5d499874f0397c505ab3fcda631a1a46847b6)
2014-04-23 11:31:03 -07:00
Zev Benjamin
e5dca4a1a2
zephyr_mirror: Fix comment
...
(imported from commit aed76ecc3b4fd8bb01c299169a8e4eefd35f7cd8)
2014-03-03 17:29:53 -05:00
Tim Abbott
8f75d55795
zephyr_mirror: Update maximum length of stream names when syncing.
...
(imported from commit 6ab7f5ae47c9dfe9edf411e73ac9e5ab22d375a7)
2013-11-12 09:38:43 -05:00
Zev Benjamin
3c455e48a9
Remove redundant return statement
...
(imported from commit eac3298f3004d2dd519c5444755e729111d13482)
2013-10-22 13:19:00 -04:00
Zev Benjamin
fab71363f4
zephyr_mirror: Make outgoing zephyrs to ctl instead go to golem
...
This makes zulips to ctl@mit.edu cause the mirroring system to zephyr
golem@mit.edu .
(imported from commit 9059a92ba51fa87e45feae2f0d5549b36b048e8b)
2013-10-17 23:20:57 -04:00
Zev Benjamin
134e96ad9b
zephyr_mirror: Hack to let golem receive mirrored personals
...
(imported from commit 68539e45dbdfd70a037405dd2760474bf46dff76)
2013-10-11 17:50:19 -04:00
Tim Abbott
46a74271ea
[manual] Rename /home/humbug to /home/zulip.
...
This may require just doing an mv on the home directory, plus changing
the home directory in /etc/passwd. It should of course be done carefully.
(imported from commit 660997d897ee6d33563af74f0fc5d4267a911755)
2013-10-08 08:57:29 -04:00
Tim Abbott
52e3d5bed5
Write zephyr mirroring logs to /var/log/zulip rather than ~/.
...
(imported from commit 7b76fa7834fb82fe3967f9e5ef963f26b7ff7184)
2013-09-25 16:52:41 -04:00
Tim Abbott
d706057ed8
zephyr_mirror: Clear all notices from the queue before selecting.
...
We were having problems where we were suspiciously processing notices
at a rate of 1 notice per 15s, which suggests that we the select was
timing out even though there were notices to be fetched immediately.
We fix this by clearing the queue each time our select loop ends.
(imported from commit 7e7bfbb2126d1f4170d65d1483a0b799dcab80b9)
2013-09-25 15:40:21 -04:00
Tim Abbott
94c74c0f9b
zephyr_mirror: Make Webathena work for golem.
...
(imported from commit 6f8bf1f44c521b22c9fc990711d2821e5a60761d)
2013-08-28 18:56:54 -04:00
Zev Benjamin
4a8311b77b
zephyr_mirror: Tweak error text
...
(imported from commit 7bb9d42a261e08d3abe5d80b9ba2e88f1d0b03bf)
2013-08-28 10:41:53 -04:00
Tim Abbott
92731d0a95
zephyr_mirror: Require zcrypt when mirroring to invite-only streams.
...
(imported from commit 1b88a8fc9bc26f2f9b1bb3f037093f85255feb17)
2013-08-27 18:26:12 -04:00
Tim Abbott
5e5e35924c
zephyr_mirror: Subscribe to mail zephyrs even if we're not using them.
...
This should enabled us, in the future, to enable support for mail
zephyrs without requiring users to re-auth.
(imported from commit 2665743212da567fe85742d30cca42b902e41a0d)
2013-08-27 16:21:41 -04:00
Tim Abbott
0d59d15781
zephyr_mirror: Rename confusing log path variables.
...
(imported from commit a120f653c1b9283b91f339cccea52bd5ad89b69f)
2013-08-27 14:21:26 -04:00
Tim Abbott
fd96a0b694
zmirror: Add monitoring for personals mirrors.
...
(imported from commit acb7f2222076d2f3884a2e52c7032cb48fde1757)
2013-08-26 18:17:26 -04:00
Tim Abbott
2249b18081
zephyr_mirror: Ignore expired Kerberos tickets for personals mirror.
...
(imported from commit 094755feacd299255f078432465f11a609df9aef)
2013-08-26 18:17:26 -04:00
Tim Abbott
9223f6b2e8
zephyr_mirror: Allow running multiple zephyr mirroring scripts under one user.
...
(imported from commit ecec50ee0e51736487358ef9f5847000d35f327a)
2013-08-26 18:17:26 -04:00