Harshit Bansal
7387e6fe4b
bugdown/__init__.py: Close opened file objects.
2017-07-01 11:14:24 -07:00
Harshit Bansal
4cb8ac100a
emoji: Fix the title and alt text for unicode emojis.
...
Unicode emojis when rendered should display canonical short name.
Similarly, the alt text should be of the format `:<short_name>:`.
For both of these we currently display the actual unicode symbol.
As some systems don't have the fonts necessary for displaying them
properly, they are rendered as empty square blocks. This commit also
ensures that the markup generated for emoji generated by canonical
name and by an unicode emoji is same.
Fixes : #5555 .
2017-07-01 11:14:24 -07:00
Rishi Gupta
b55dce197d
actions.py: Clear ScheduledJobs of users in do_deactivate_{user,realm}.
2017-07-01 08:44:47 -07:00
Rishi Gupta
577e201df0
emails: Replace DEFAULT_FROM_EMAIL with ZULIP_ADMINISTRATOR.
...
We're getting rid of DEFAULT_FROM_EMAIL from prod_settings_template, since
we only really need one of {DEFAULT_FROM_EMAIL, ZULIP_ADMINISTRATOR}.
2017-06-29 17:54:33 -07:00
Rishi Gupta
36cd122905
models: Change default org_type to CORPORATE.
...
Once we implement org_type-specific features, it'll be easy to change a
corporate realm to a community realm, but hard to go the other way. The main
difference (the main thing that makes migrating from a community realm to a
corporate realm hard) is that you'd have to make everyone sign another terms
of service.
2017-06-29 15:14:58 -07:00
Harshit Bansal
fc6eedb831
bugdown: Make unicode_emoji_regex global.
2017-06-29 13:26:07 -07:00
vaibhav
7f9b4d3a94
Outgoing Webhook System: Add usage of Interfaces in DoRestCall.
2017-06-28 11:11:21 -04:00
vaibhav
a60552930e
Outgoing Webhook System: Add base interface class and Generic class.
2017-06-28 11:11:21 -04:00
Yago González
2f4091b38d
api: Fix caps in JSON validation error message.
2017-06-27 08:33:56 -04:00
Greg Price
058d76f5ff
avatar_hash: Update a comment to reflect the current code.
...
Also move a couple of comments inside the functions they describe,
because they're about the implementation of the functions rather
than their interface.
2017-06-26 15:15:32 -07:00
Eeshan Garg
708f3a4bb1
lib/integrations: Stop rendering HTML files.
...
Now that all of our integrations/webhooks docs have been migrated
to Markdown, we no longer need to render HTML.
2017-06-26 12:30:04 -04:00
Eeshan Garg
4ad951f256
integrations/perforce: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
ed388ed320
integrations/redmine: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
53c1a53120
integrations/jenkins: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
9115be0e9e
integrations/trello-plugin: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
c17600e3be
integrations/rss: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
421c71919c
integrations/mercurial: Use create-stream macro.
2017-06-26 12:30:04 -04:00
Eeshan Garg
9dde906115
integrations/git: Use macros and improve Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
b60c95d971
integrations/svn: Use Markdown macros.
2017-06-26 12:30:04 -04:00
Eeshan Garg
b9ac92c1a0
integrations/openshift: Use Markdown macros.
2017-06-26 12:30:04 -04:00
Eeshan Garg
31fa2f7c6d
integrations/hubot: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
3eeb90c599
integrations/puppet: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
fc0d7ed882
integrations/phabricator: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
169d7393a6
jira-plugin: Use create-stream macro and improve Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
70448a9c65
integrations/email: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
5fa71a4369
integrations/asana: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Vishnu Ks
50008fe309
actions.py: Create internal_send_private_message function.
2017-06-25 11:23:45 -04:00
Abhijeet Kaur
c42d935be8
bots: Move "EmbeddedBotHandler" class to "zerver/lib/bot_lib.py" file.
...
This would keep embedded classes for zulip at one place, that is, in
"zerver" directory. This also fixes break in PyPI package for bindings.
2017-06-21 16:01:16 -04:00
Sampriti Panda
5dc053d6fb
bots: Add validation to add_bot_backend to prevent empty short names
...
Fixes #5487
2017-06-21 10:11:08 -04:00
Harshit Bansal
dfbf8b8086
bugdown: Remove shortname mention syntax.
...
We used shortnames for mentioning users before we had autocomplete
feature. Since we now have autocomplete typeahead, this syntax is
no more useful and just causes problems. This commit removes the
shortname mention syntax.
Fixes : #4189 .
2017-06-19 16:57:59 -04:00
Jack Zhang
af3b7d4c98
message-edit: Patch html tags after edits on new lines.
2017-06-19 16:43:11 -04:00
Aditya Bansal
f32c1892ff
preview.py: Fix error raised on uploading file with unicode filename.
2017-06-19 14:58:44 -04:00
Cory Lynch
6255636923
Support special characters for code block languages.
...
Fixes #5412
2017-06-19 06:53:25 -04:00
Cory Lynch
b4419528f7
Update narrow.py, messages.py to support is:unread.
2017-06-19 06:51:13 -04:00
vaibhav
42af09663d
validators: Add check_url validator.
...
This just uses Django's existing validator, and reformats its
interface to work with has_request_variables.
2017-06-15 15:03:26 -07:00
Tim Abbott
0904d61e96
integrations: Remove compatibility code for HTML format docs.
...
This fixes a coverage error in Travis CI caused by this code no longer
being used.
2017-06-15 12:34:46 -07:00
Abhijeet Kaur
af7e08acb0
bots: Add UI to view bot types of existing bots in "Your bots".
...
Tweaked by tabbott for more standard internationalization.
2017-06-15 10:08:31 -07:00
kunall17
d8310724b6
Use absolute URLs in GCM push notifications.
...
This will eventually allow us to simplify the logic required for the
mobile apps processing GCM notifications.
2017-06-15 03:56:59 -07:00
Harshit Bansal
7950f82f27
realm_emoji: Make sure that a deactivated realm emoji can't be used.
...
A deactivated realm emoji should neither be accepted further as a
reaction nor its further occurences in a message be rendered as an
emoji. However, all the old occurences should continue to render
normally.
2017-06-15 02:59:57 -07:00
Aditya Bansal
914ab1040d
integrations/codebase.html: Migrate to Markdown.
2017-06-13 16:32:00 -07:00
Eeshan Garg
f1c209b38d
lib/integrations: Stop passing kwargs as positional args to super.
2017-06-13 15:33:22 -07:00
Eeshan Garg
84da473da5
webhooks/semaphore: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
902ae31e15
webhooks/deskdotcom: Migrate docs to Markdown.
2017-06-13 15:30:35 -07:00
Eeshan Garg
32550159de
github_webhook: Use Integration.stream_name as recommended stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
c3c004743c
github/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
9cefdb9ed2
bitbucket/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
db09913f38
lib/integrations: Add stream_name attribute to Integration.
...
Instead of using the name of the integration as a recommended
stream name in its documentation, the Integration object now
has a dedicated attribute stream_name to explicitly specify a
recommended stream name for when it is different than the name
of the integration itself.
2017-06-13 15:30:35 -07:00
Umair Khan
8660e002bb
Django 1.11: Upgrade parallel test runner.
...
In Django 1.11, args argument of run_subsuite function is a tuple of
length 4. The new argument is the test runner class which we do not
need because we run tests using our own version of the test runner.
2017-06-13 15:04:04 -07:00
Umair Khan
1e9c87855c
Django 1.11: is_authenticated is now a property.
2017-06-13 15:04:04 -07:00
Steve Howell
b5ebdc7926
migrations: Add create_if_not_exist() helper.
...
This replaces a function that was on longer in use. We need
this helper for our old version of postgres.
2017-06-13 13:58:58 -07:00