feeds: put code tgt

master
pictuga 2018-11-11 17:24:56 +01:00
parent 3581f34db7
commit adbaed9e54
1 changed files with 7 additions and 7 deletions

View File

@ -483,13 +483,6 @@ class Feed(object):
return len(self.get_raw('items'))
class FeedXML(Feed, ParserXML):
itemsClass = 'ItemXML'
def tostring(self, **k):
return etree.tostring(self.root.getroottree(), **k)
class Item(Uniq):
dic = ('title', 'link', 'desc', 'content', 'id', 'is_permalink', 'time', 'updated')
@ -536,5 +529,12 @@ class Item(Uniq):
lambda f: f.rmv('item_updated') )
class FeedXML(Feed, ParserXML):
itemsClass = 'ItemXML'
def tostring(self, **k):
return etree.tostring(self.root.getroottree(), **k)
class ItemXML(Item, ParserXML):
pass