notifications: Extract zerver/lib/url_encoding.py.

Extracting this helper library will help us avoid an import loop
between notifications.py and message.py (with bugdown in between).

But in addition to that, it's a more natural model, since some of the
uses for these functions weren't part of the notifications code
anyway.
This commit is contained in:
Tim Abbott
2018-07-28 15:05:45 -07:00
parent bd5e39cd9e
commit 6bbffe0e2e
5 changed files with 36 additions and 32 deletions

View File

@@ -15,8 +15,8 @@ from django.utils.translation import ugettext as _
from zerver.models import Realm, UserProfile, get_user_profile_by_id, get_client, \
GENERIC_INTERFACE, Service, SLACK_INTERFACE, email_to_domain, get_service_profile
from zerver.lib.actions import check_send_message
from zerver.lib.notifications import encode_stream
from zerver.lib.queue import retry_event
from zerver.lib.url_encoding import encode_stream
from zerver.lib.validator import check_dict, check_string
from zerver.decorator import JsonableError