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

Module txt2format

SooVee Serial Audio Manger - Text page of serial audio feeds for the forms module plugin. It will create a summary page containing a section for set of serial audio feeds.


Requires: soovee_lib.parse

Functions
None
write(filepath, workpath, data, cache=None, service=None)
Initialize and write a summary text page.
basestring
item(data, feed=None, service=None)
Format an text section page for a feed subscription using data found in its Opml feed entry and in its Rss file.
Variables
  METHOD = ('frm', 'sumtxt')
Tuple of type and format
  FILENAME = 'svsum.txt'
Default file name for page
  __package__ = None
Function Details

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

 

Initialize and write a summary text page. The passed Opml data is used to retrieve the data for each Rss feed.

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 a page and locate Rss feed data.
  • cache (obj) - Intialized soovee.lib.sv_read object. Default None.
  • service (obj) - Intialized soovee.regex object. Default None.
Returns: None
Raises:
  • TypeError - data passed was not a list

Requires: soovee_lib.parse

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

 

Format an text section page for a feed subscription using data found in its Opml feed entry and in its Rss file.

Parameters:
  • data (dict) - Opml data
  • feed (dict) - Rss data. Default dict.
  • service (obj) - Intialized soovee.regex object. Default None.
Returns: basestring
Raises:
  • TypeError - data or feed passed was not a dict