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

Module htm2format

SooVee Serial Audio Manger - Html pages with index for the forms module plugin. It will create a page for each serial audio feed in ./books and a link to it on the index page.in the parent folder.

This plugin was developed specificaly for soovee.gui summary view. It lacks the cover image and sets a few class attributes as well.


Requires: soovee_lib.parse

Functions
None
write(filepath, workpath, data, cache=None, service=None)
Initialize and write set of html pages in ./books with an index.
basestring
item(data, feed=None, service=None)
Format an html page for a feed subscription using data found in its Opml feed entry and in its Rss file.
Variables
  METHOD = ('frm', 'view')
Tuple of type and format
  FILENAME = 'index.html'
Default file name for index
  __package__ = None
Function Details

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

 

Initialize and write set of html pages in ./books with an index. 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 pages 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 html page for a feed subscription using data found in its Opml feed entry and in its Rss file. Store a filename for this page. Set class attributes for use with soovee.gui summary view.

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