zulip/zerver
Steve Howell 583a6bbadd Extract zerver/lib/message.py.
This pulls message-related code from models.py into a new
module called message.py, and it starts to break some bugdown
dependencies.  All the methods here are basically related to
serializing Message objects as dictionaries for caches and
events.

    extract_message_dict
    stringify_message_dict
    message_to_dict
    message_to_dict_json
    MessageDict.to_dict_uncached
    MessageDict.to_dict_uncached_helper
    MessageDict.build_dict_from_raw_db_row
    MessageDict.build_message_dict

This fix also removes a circular dependency related
to get_avatar_url.

Also, there was kind of a latent bug in Message.need_to_render_content
where it was depending on other calls to Message to import bugdown
and set it globally in the namespace.  We really need to just
eliminate the function, since it's so small and used by code that
may be doing very sketchy things, but for now I just fix it.  (The
bug would possibly be exposed by moving build_message_dict out to the
library.)
2016-10-04 11:31:20 -07:00
..
fixtures Add Pipeline Hook event handling to gitlab integration. 2016-10-02 09:35:07 -07:00
lib Extract zerver/lib/message.py. 2016-10-04 11:31:20 -07:00
management avatar: Move avatar hash computations to their own file. 2016-10-02 21:19:10 -07:00
migrations Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
templatetags Annotate zerver/templatetags/minified_js.py. 2016-09-12 08:10:50 -07:00
tests Extract zerver/lib/message.py. 2016-10-04 11:31:20 -07:00
views Extract zerver/lib/message.py. 2016-10-04 11:31:20 -07:00
worker socket: Switch localhost to 127.0.0.1. 2016-09-13 10:01:57 -07:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py portico: Add options to disable login and about links. 2016-09-13 22:59:09 -07:00
decorator.py subdomains: Enforce subdomain checks on every API endpoint. 2016-09-27 23:25:07 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
forms.py Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
logging_handlers.py settings: Extract settings.STAGING_ERROR_NOTIFICATIONS. 2016-07-19 15:28:41 -07:00
middleware.py Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
models.py Extract zerver/lib/message.py. 2016-10-04 11:31:20 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py Annotate zerver/storage.py. 2016-08-08 15:12:12 -07:00
tornadoviews.py zerver/tornado.py: Convert queue_id to str. 2016-07-04 02:58:57 +05:30