Tim Abbott
956bd74905
attachments: Send events for attachment updates.
...
We send add events on upload, update events when sending a message
referencing it, and delete updates on removal.
This should make it possible to do real-time sync for the attachments
UI.
Based in part on work by Aastha Gupta.
2018-05-04 16:22:27 -07:00
rht
e538f4dd44
zerver/views: Use Python 3 syntax for typing.
...
Edited by tabbott to remove state.py and streams.py, because of
problems with the original PR's changes, and wrap some long lines.
2017-11-27 17:10:39 -08:00
Tim Abbott
80a9253f89
attachments: Remove unnecessary use of REQ.
...
It didn't do anything, because that third argument is actually a
positional argument coming from the URL parsing logic.
2017-10-27 15:18:44 -07:00
Tim Abbott
1cd017288d
views: Fix imports of REQ/has_request_variables from the wrong place.
...
These were never in zerver/decorator.py, and so it makes sense to
import them zerver/lib/request.py, mostly for ease of finding things.
2017-10-27 15:07:31 -07:00
rht
15ca13c8de
zerver/views: Remove absolute_import.
2017-09-27 10:00:39 -07:00
paxapy
9a5179c460
Add support for managing and deleting attachments.
...
Modified substantially by tabbott to fix tons of issues.
Fixes #454 .
2017-02-16 23:44:44 -08:00