Changes between Initial Version and Version 1 of Ticket #13110, comment 8


Ignore:
Timestamp:
Aug 20, 2015, 12:00:42 PM (9 years ago)
Author:
Unai Zalakain

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13110, comment 8

    initial v1  
    44Currently `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.
    55
    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.
     6Instead, 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.
    77
    88RSS feeds could then validate that `item_enclosures` is no longer than 1.
Back to Top