nv_python_libs::xsltfunctions::tributeca_api Namespace Reference


Classes

class  OutStreamEncoder
class  xpathFunctions
class  xsltExtExample

Functions

def tributecaLinkGeneration
def tributecaThumbnailLink
def tributecaTopTenTitle
def tributecaIsCustomHTML
def tributecaCheckIfDBItem

Variables

string __title__ = "tributeca_api - XPath and XSLT functions for the Tribute.ca grabber"
string __author__ = "R.D. Vaughan"
string __purpose__
string __version__ = "v0.1.0"
list __xpathClassList__ = ['xpathFunctions', ]
list __xsltExtentionList__ = []
string version = ''


Function Documentation

def nv_python_libs::xsltfunctions::tributeca_api::tributecaLinkGeneration (   self,
  context,
  args 
)

Generate a link for the Tribute.ca site. Sigificant massaging of the title is required.
Call example: 'mnvXpath:tributecaLinkGeneration(string(.), string(preceding-sibling::a[1]))'
return the url link

Definition at line 105 of file tributeca_api.py.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaThumbnailLink (   self,
  context,
  args 
)

Verify that the thumbnail actually exists. If it does not then use the site image.
Call example: 'mnvXpath:tributecaThumbnailLink(string(.//img/@src))'
return the thumbnail url

Definition at line 195 of file tributeca_api.py.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaTopTenTitle (   self,
  context,
  args 
)

Take a top ten title and add a leading '0' if less than 10 as it forces correct sort order
Call example: 'mnvXpath:tributecaTopTenTitle(string(..))'
return a replacement title

Definition at line 215 of file tributeca_api.py.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaIsCustomHTML (   self,
  context,
  args 
)

Check if the link is for a custom HTML
Example call: mnvXpath:isCustomHTML(('dummy'))
return True if the link does not starts with "http://"
return False if the link starts with "http://"

Definition at line 230 of file tributeca_api.py.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaCheckIfDBItem (   self,
  context,
  arg 
)

Use a unique key value pairing to find out if the 'internetcontentarticles' table already
has a matching item. This is done to save accessing the Internet when not required.
Call example: 'mnvXpath:tributecaCheckIfDBItem(.)'
return True if a match was found
return False if a match was not found

Definition at line 245 of file tributeca_api.py.


Variable Documentation

string nv_python_libs::xsltfunctions::tributeca_api::__title__ = "tributeca_api - XPath and XSLT functions for the Tribute.ca grabber"

Definition at line 15 of file tributeca_api.py.

Definition at line 16 of file tributeca_api.py.

Initial value:

'''
This python script is intended to perform a variety of utility functions
for the conversion of data to the MNV standard RSS output format.
See this link for the specifications:
http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format
'''

Definition at line 17 of file tributeca_api.py.

Definition at line 24 of file tributeca_api.py.

Definition at line 29 of file tributeca_api.py.

Definition at line 33 of file tributeca_api.py.

Definition at line 78 of file tributeca_api.py.


Generated on Sat Sep 4 06:39:57 2010 for MythTV by  doxygen 1.5.5