def __init__(self, title, url, description, rssFile=None, pickleFile=None, maxItems=20, **kwargs): RSS2.__init__(self, title, url, description, **kwargs) WebPageMetadata.__init__(self, url, pickleFile) self.maxItems = maxItems if not rssFile: rssFile = self.digest() + '.xml' self.rssFile = rssFile self.currentGuids = {}
def __init__(self, title, link, description, language = None, copyright = None, managingEditor = None, webMaster = None, pubDate = None, # a datetime, *in* *GMT* lastBuildDate = None, # a datetime categories = None, # list of strings or Category generator = 'MunkiStagingRSSFeed 1.0', docs = "https://docs.orchard.ox.ac.uk/rss", cloud = None, # a Cloud ttl = None, # integer number of minutes image = None, # an Image rating = None, # a string; I don't know how it's used textInput = None, # a TextInput skipHours = None, # a SkipHours with a list of integers skipDays = None, # a SkipDays with a list of strings items = None, # list of RSSItems ): # Initialise base class .. RSS2.__init__(self, title, link, description, language, copyright, managingEditor, webMaster, pubDate, lastBuildDate, categories, generator, docs, cloud, ttl, image, rating, textInput, skipHours, skipDays, items) # Add media name space (for item icons) # Um ... rss_attrs is a class attribute, so this may have # unexpected side effects (but I don't particularly want to # re-engineer the class self.rss_attrs['xmlns:media'] = 'http://search.yahoo.com/mrss/' self.rss_attrs['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/'
def __init__( self, title, link, description, language=None, copyright=None, managingEditor=None, webMaster=None, pubDate=None, # a datetime, *in* *GMT* lastBuildDate=None, # a datetime categories=None, # list of strings or Category generator='MunkiStagingRSSFeed 1.0', docs="https://docs.orchard.ox.ac.uk/rss", cloud=None, # a Cloud ttl=None, # integer number of minutes image=None, # an Image rating=None, # a string; I don't know how it's used textInput=None, # a TextInput skipHours=None, # a SkipHours with a list of integers skipDays=None, # a SkipDays with a list of strings items=None, # list of RSSItems ): # Initialise base class .. RSS2.__init__(self, title, link, description, language, copyright, managingEditor, webMaster, pubDate, lastBuildDate, categories, generator, docs, cloud, ttl, image, rating, textInput, skipHours, skipDays, items) # Add media name space (for item icons) # Um ... rss_attrs is a class attribute, so this may have # unexpected side effects (but I don't particularly want to # re-engineer the class self.rss_attrs['xmlns:media'] = 'http://search.yahoo.com/mrss/' self.rss_attrs['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/'
def __init__(self, **kwargs): RSS2.__init__(self, **kwargs) self.rss_attrs['xmlns:content']='http://purl.org/rss/1.0/modules/content/' self.rss_attrs['xmlns:dc']='http://purl.org/dc/elements/1.1/'
def __init__(self, **kwargs): RSS2.__init__(self, **kwargs) self.rss_attrs[ 'xmlns:content'] = 'http://purl.org/rss/1.0/modules/content/' self.rss_attrs['xmlns:dc'] = 'http://purl.org/dc/elements/1.1/'