isPermaLink in feeds.py (RSS only)
parent
68768dd6e4
commit
91251ec306
18
feeds.py
18
feeds.py
|
@ -407,6 +407,13 @@ class FeedItem(FeedBase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def getIsPermaLink(self):
|
||||||
|
return ""
|
||||||
|
|
||||||
|
def setIsPermaLink(self, value):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def getDesc(self):
|
def getDesc(self):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
@ -461,6 +468,7 @@ class FeedItem(FeedBase):
|
||||||
description = desc = FeedDescriptor('desc')
|
description = desc = FeedDescriptor('desc')
|
||||||
content = FeedDescriptor('content')
|
content = FeedDescriptor('content')
|
||||||
id = FeedDescriptor('id')
|
id = FeedDescriptor('id')
|
||||||
|
isPermaLink = FeedBool('isPermaLink')
|
||||||
time = FeedTime('time')
|
time = FeedTime('time')
|
||||||
updated = FeedTime('updated')
|
updated = FeedTime('updated')
|
||||||
|
|
||||||
|
@ -540,6 +548,16 @@ class FeedItemRSS(FeedItem):
|
||||||
element.text = value
|
element.text = value
|
||||||
|
|
||||||
|
|
||||||
|
def getIsPermaLink(self):
|
||||||
|
return self.xget('rssfake:guid/@isPermaLink|guid/@isPermaLink')
|
||||||
|
|
||||||
|
def setIsPermaLink(self, value):
|
||||||
|
table = { 'rdf:rdf': 'rssfake:guid',
|
||||||
|
'channel': 'guid'}
|
||||||
|
element = self.xgetCreate(table)
|
||||||
|
element.attrib['isPermaLink'] = value
|
||||||
|
|
||||||
|
|
||||||
def getTime(self):
|
def getTime(self):
|
||||||
return self.xval('rssfake:pubDate|pubDate')
|
return self.xval('rssfake:pubDate|pubDate')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue