2013-05-05 18:17:44 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
'''
|
|
|
|
feedgen.ext.base
|
|
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
|
2013-05-05 20:36:35 +02:00
|
|
|
Basic FeedGenerator extension which does nothing but provides all necessary
|
|
|
|
methods.
|
2013-05-05 18:17:44 +02:00
|
|
|
|
|
|
|
:copyright: 2013, Lars Kiesow <lkiesow@uos.de>
|
|
|
|
|
|
|
|
:license: FreeBSD and LGPL, see license.* for more details.
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
class BaseExtension(object):
|
|
|
|
'''Basic FeedGenerator extension.
|
|
|
|
'''
|
|
|
|
|
|
|
|
def extend_rss(self, feed):
|
|
|
|
'''Create an RSS feed xml structure containing all previously set fields.
|
|
|
|
|
|
|
|
:param feed: The feed xml root element.
|
|
|
|
:returns: The feed root element.
|
|
|
|
'''
|
|
|
|
return feed
|
|
|
|
|
|
|
|
|
2013-05-16 18:32:32 +02:00
|
|
|
def extend_atom(self, feed):
|
2013-05-05 18:17:44 +02:00
|
|
|
'''Create an ATOM feed xml structure containing all previously set
|
|
|
|
fields.
|
|
|
|
|
|
|
|
:param feed: The feed xml root element.
|
|
|
|
:returns: The feed root element.
|
|
|
|
'''
|
2013-05-16 18:32:32 +02:00
|
|
|
return feed
|
2013-05-05 18:17:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
class BaseEntryExtension(BaseExtension):
|
|
|
|
'''Basic FeedEntry extension.
|
|
|
|
'''
|