Ticket #3332 (assigned enhancement)
Mimeview API v2
| Reported by: | cboos | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.13 |
| Component: | general | Version: | devel |
| Severity: | critical | Keywords: | mimeview |
| Cc: | daved@…, ybarthelemy@… |
Description
We recently introduced the IContentConverter interface, and there are some issues remaining with this:
- the methods for that interface are quite complex, not really extensible
- the usage of strings for model objects should be replace by using the corresponding classes
- artificial differences from the IHTMLPreviewRenderer, and duplicated code (mainly between Mimeview.render and Mimeview.convert_content)
Besides, there are other issues with the Mimetype API:
- content_to_unicode needs to be deprecated/simplified as well
- simplify the handling of mimetypes strings (the fact that they sometimes have the charset info, sometimes not)
- in general, aim to simplify the code that uses the mimeview API
Work in progress. A patch will be attached today or tomorrow for review.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


