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
def tributecaGetAnchors
def tributecaDebug

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.1"
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(position(), ..//a)'
return the url link

Definition at line 107 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.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaGetAnchors (   self,
  context,
  arg 
)
Routine used to get specific anchor elements.
Unfortunitely position dependant.
Call: mnvXpath:tributecaGetAnchors(//ul[@class='clump'], 3)

Definition at line 255 of file tributeca_api.py.

def nv_python_libs::xsltfunctions::tributeca_api::tributecaDebug (   self,
  context,
  arg 
)
Routine only used for debugging. Prints out the node
passed as an argument. Not to be used in production.
Call example: mnvXpath:tributecaDebug(//a)

Definition at line 263 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 30 of file tributeca_api.py.

Definition at line 34 of file tributeca_api.py.

Definition at line 79 of file tributeca_api.py.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon Feb 6 06:42:31 2012 for MythTV by  doxygen 1.6.3