Tim Abbott
a1b306f9ce
Finish purging 'fromt typing import *' from Zulip codebase.
2016-04-07 14:11:21 -07:00
Eklavya Sharma
0af154a301
Apply Python 3 futurize transform libfuturize.fixes.fix_absolute_import.
2016-04-05 13:22:51 -07:00
Tim Abbott
2c1377319f
Add type: ignore for mypy __cmp__ bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
5d5976e4ae
Add PEP-484 type annotations to api/.
...
It's not clear this is net constructive since it makes our API
bindings harder to install.
2016-04-03 15:40:23 -07:00
Tim Abbott
8c0b110e9a
Add python-typing dependency.
2016-03-30 21:50:25 -07:00
Ashish
2050f5c7fa
Add API example for fetching historical messages.
...
Fixes : #269 .
2016-03-29 19:04:43 -07:00
Eklavya Sharma
9e3c3e14f5
Partially apply Python 3 libmodernize.fixes.fix_dict_six.
...
Refer to #256
2016-03-19 15:52:58 -07:00
Eklavya Sharma
7b8cb105bf
Apply Python 3 futurize transform libmodernize.fixes.fix_imports_six
...
Refer to #256
2016-03-10 22:03:30 -08:00
Eklavya Sharma
e83a2c8cc2
Apply Python 3 futurize transform libmodernize.fixes.fix_basestring
...
Refer to #256
2016-03-10 22:02:27 -08:00
Eklavya Sharma
c59185e119
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
...
Refer #256
2016-03-10 22:02:17 -08:00
Eklavya Sharma
e2d5ec1868
Apply Python 3 futurize transform lib2to3.fixes.fix_ws_comma
2016-03-10 22:02:04 -08:00
Eklavya Sharma
4fb549abe8
Apply Python 3 futurize transform lib2to3.fixes.fix_idioms
...
Refer to #256
2016-03-10 22:02:01 -08:00
Eklavya Sharma
ab7287474e
Apply Python 3 futurize transform lib2to3.fixes.fix_has_key
...
Refer to #256
2016-03-10 22:01:55 -08:00
Eklavya Sharma
f3d387e727
Apply Python 3 futurize transform lib2to3.fixes.fix_except
2016-03-10 22:01:50 -08:00
Tim Abbott
5bacda3662
python3: Fix usage of .keys()/.values() to handle iterators.
...
This fixes the places where we use the result of .keys(), .items(),
and .values() that wouldn't work with an iterator to wrap them with
list().
2016-01-26 21:11:25 -08:00
Tim Abbott
1f44417fc1
Switch to using Python 3 style division everywhere.
...
Also add testing for this to our Python 3 compatibility test suite.
2016-01-26 21:09:43 -08:00
Tim Abbott
6528b18ad3
Switch all urllib/urlparse usage to six.moves.urllib.
...
This provides Python 2+3 compatibility for our use of urllib.
Also add a test to avoid future regressions.
2016-01-26 21:09:43 -08:00
Tim Abbott
52f9574047
Fix missing python-six dependency for Zulip API.
2016-01-26 21:09:42 -08:00
Tim Abbott
700055c194
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
529d7a2877
Release API version 0.2.5.
2016-01-23 11:38:47 -08:00
Tim Abbott
515249ce0a
trac: Cleanup documentation of TRAC_NOTIFY_FIELDS.
2016-01-09 20:21:39 -08:00
Tim Abbott
a79e89b28f
Cleanup remaining usage of % comprehensions without explicit tuples.
2015-12-05 15:29:42 -08:00
Tim Abbott
f6f8f1fe36
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
33295180a9
Apply Python 3 futurize transform libmodernize.fixes.fix_unicode_type.
2015-11-01 09:35:06 -08:00
Tim Abbott
607eedfc25
Apply Python 3 futurize transform libmodernize.fixes.fix_zip.
2015-11-01 09:35:06 -08:00
Tim Abbott
f7878a61e1
Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six.
2015-11-01 09:35:06 -08:00
Tim Abbott
3b185ad4de
Apply Python 3 futurize transform libmodernize.fixes.fix_input_six.
2015-11-01 09:26:17 -08:00
Tim Abbott
2ea0663a4a
Apply Python 3 futurize transform libmodernize.fixes.fix_imports_six.
2015-11-01 09:26:16 -08:00
Tim Abbott
651b011514
Apply Python 3 futurize transform libmodernize.fixes.fix_basestring.
2015-11-01 09:26:16 -08:00
Tim Abbott
f3783fb4a1
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import.
2015-11-01 09:26:16 -08:00
Tim Abbott
f97649b35c
Apply Python 3 futurize transform libfuturize.fixes.fix_next_call.
2015-11-01 09:26:16 -08:00
Tim Abbott
43abd83d1c
Apply Python 3 futurize transform lib2to3.fixes.fix_ws_comma.
2015-11-01 09:26:14 -08:00
Tim Abbott
2b61c0203d
Apply Python 3 futurize transform lib2to3.fixes.fix_repr.
2015-11-01 09:25:49 -08:00
Tim Abbott
2398a370e2
Apply Python 3 futurize transform lib2to3.fixes.fix_ne.
2015-11-01 09:25:49 -08:00
Tim Abbott
06f6ee6566
Apply Python 3 futurize transform lib2to3.fixes.fix_idioms.
2015-11-01 09:25:47 -08:00
Tim Abbott
e9243d0f0b
Apply Python 3 futurize transform lib2to3.fixes.fix_has_key.
2015-11-01 08:10:01 -08:00
Tim Abbott
5ce6a3c8f9
Apply Python 3 futurize transform lib2to3.fixes.fix_funcattrs.
2015-11-01 08:09:54 -08:00
Shane Kearns
6e3426fe10
python api: allow control over the server certificate verification
...
The --insecure option ("insecure=true" in .zuliprc) disables
verification entirely, similar to other tools like curl.
The --cert_bundle ("cert_bundle=<file>" in .zuliprc) allows
a file to be specified containing the CA certificates to verify
against.
When using self-signed certificates, the server's public key
can be used as the only cerificate in the file.
This change incidentally fixes an issue where the "site" parameter
in .zuliprc was ignored when specifying --user and --api-key on
the command line.
Fixes : #104
2015-10-31 21:20:34 -07:00
Bernhard Morgenstern
dd2ccff22b
Fix indentation for Trac ticket description changes.
...
Before this fix, the "to" was included in the markdown blocks.
2015-10-22 15:02:35 -07:00
Steven Oud
d5435fad1d
Consistently use /usr/bin/env python2.7 in shebangs and commands.
2015-10-21 22:58:21 +00:00
Waseem Daher
6bb9b129f7
Update Zulip support email to zulip-devel@googlegroups.com.
...
Ideally some of these templates should really point to the
local installation's support email address, but this is a
good start.
Exceptions:
* Where to report security incidents
* MIT Zephyr-related pages
* zulip.com terms and conditions
2015-09-29 17:59:47 -07:00
Tim Abbott
3caa743951
rss: Support feeds that don't provide any sort of timestamp.
...
(imported from commit 9acc9dad7543a0e0a6bc2e71360b7017c3c7c63d)
2015-09-25 03:57:51 -07:00
Tim Abbott
b3dfacae19
Change API example usernames to use example.com domain.
...
(imported from commit 41b7be58735df0ea3d3a3daf23bc0f78606abc0d)
2015-09-19 18:12:02 -07:00
Tim Abbott
eca3c3bfaa
Add api/examples/print-events.
...
(imported from commit 8c0e3f7809f06e4aff3bd8c0640479819853c418)
2015-09-19 18:05:21 -07:00
Tim Abbott
16e0f21687
Fix a bunch of Zulip Voyager related comments.
...
(imported from commit 176e875cbc310ba00d6137930ddb718bd68f1866)
2015-08-21 10:40:54 -07:00
David Roe
e3f38acbce
Enterprise => Voyager.
...
(imported from commit 41b9a67301aeaf5fd40bbbb8f34a326ca98431fd)
2015-08-21 10:33:35 -07:00
David Roe
f79adf830f
deployed => production
...
(imported from commit 2d7b0a7a73b0c84b32634a88af1e0d666139d4ff)
2015-08-21 10:33:35 -07:00
Jonathan Dahan
6f77e68622
Add GET /export endpoint, which dumps important tables in json.
...
Meant to be used in tandem with the manage.py import command.
The following sensitive data is scrubbed:
* user api keys
* user password hashes
* stream email keys
* invite-only streams
* messages from invite-only streams
* messages from users from other domains
(imported from commit 8e58dcdcb80ef1c7127d3ab15accf40c6187633f)
2015-08-19 15:31:08 -07:00
Zev Benjamin
4e1d86f775
Handle platform.system() throwing an IOError
...
This can happen if the calling process is handling SIGCHLD. See
http://bugs.python.org/issue9127
We ran into this in the zephyr_mirror.
(imported from commit 80fade2274714b7c2c4b9fe38c66a1db8cc63234)
2014-05-20 17:29:29 -07:00
Jason Michalski
672603d6cd
Add missing logger
...
(imported from commit e27d78f04fb8cb60b0cbdf4a544a047265abf9d5)
2014-04-28 19:51:04 -04:00