witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/view/Rss_item.py

16 lines
522 B
Python

from Rss_tags import Item, Title, Link, Description, Dc_date, Dc_creator, Guid
class Rss_item( Item ):
def __init__( self, title, link, description, date, guid ):
Item.__init__(
self,
Title( title, separator = u"" ),
Link( link, separator = u"" ),
Description( description ),
Dc_date( date ),
# if we don't set the separator to empty, Node inserts newlines when the guid gets too long.
# newlines in guids make Thunderbird angry
Guid( guid, separator = u"" ),
)