Package soovee_app :: Package forms :: Module opmlformat
[frames] | no frames]

Module opmlformat

SooVee Serial Audio Manger - Opml file of serial audio info for the forms module plugin. It will create a page containing a section for set of serial audio info.

This plugin was developed specificaly for soovee.pages data.

Functions
None
write(filepath, workpath, data, cache=None, service=None)
Initialize and write an Opml file with serial audio info sections.
basestring
item(data, feed=None, service=None)
Format an opml section for a feed subscription using data found in its Opml feed entry.
Variables
  METHOD = ('htm', 'opml')
Tuple of type and format
  FILENAME = 'sv%s.opml'
Default file name for page
  __package__ = None
Function Details

write(filepath, workpath, data, cache=None, service=None)

 

Initialize and write an Opml file with serial audio info sections. The passed Opml data is used to build the sections.

Parameters:
  • filepath (basestring) - Local path-filename fragment.
  • workpath (basestring) - Base path-filename to store filename under.
  • data (list) - List of Opml feed data to help build file.
  • cache (obj) - Unused for this format. Default None.
  • service (obj) - Unused for this format. Default None.
Returns: None
Raises:
  • TypeError - data passed was not a list

item(data, feed=None, service=None)

 

Format an opml section for a feed subscription using data found in its Opml feed entry.

Parameters:
  • data (dict) - Opml data
  • feed (dict) - Unused for this format. Default dict.
  • service (obj) - Unused for this format. Default None.
Returns: basestring
Raises:
  • TypeError - data passed was not a dict