Changes between Initial Version and Version 1 of Ticket #13110, comment 8
- Timestamp:
- Aug 20, 2015, 12:00:42 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13110, comment 8
initial v1 4 4 Currently `Feed` builds the `Enclosure` from `item_enclosure_url`, `item_enclosure_length` and `item_enclosure_mime_type`. Accepting an optional list for one of them would mean accepting optional lists for the three of them and that would become quite a strange and cumbersome API. 5 5 6 Instead, I propose creating a `item_enclosures` attr/func ( following the way all the rest are gotten) which, by default, returns a list with a single `Enclosure` in it. That enclosure would be built using the url, length and mime_type gotten from the corresponding attrs.6 Instead, I propose creating a `item_enclosures` attr/func (the same way all the other attr/funcs work) which, by default, returns a list with a single `Enclosure` in it. That enclosure would be built using the url, length and mime_type gotten from the corresponding attrs. 7 7 8 8 RSS feeds could then validate that `item_enclosures` is no longer than 1.