MythTV
master
|
Public Member Functions | |
def | __init__ (self) |
def | tributecaLinkGeneration (self, context, *args) |
Start of XPath extension functions. More... | |
def | tributecaThumbnailLink (self, context, *args) |
def | tributecaTopTenTitle (self, context, *args) |
def | tributecaIsCustomHTML (self, context, *args) |
def | tributecaCheckIfDBItem (self, context, *arg) |
def | tributecaGetAnchors (self, context, *arg) |
def | tributecaDebug (self, context, *arg) |
Public Attributes | |
functList | |
TextTail | |
anchorList | |
persistence | |
Functions specific extending XPath
Definition at line 89 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.__init__ | ( | self | ) |
Definition at line 92 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaLinkGeneration | ( | self, | |
context, | |||
* | args | ||
) |
Start of XPath extension functions.
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 105 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.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 193 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.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 213 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.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 228 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.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 243 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaGetAnchors | ( | self, | |
context, | |||
* | arg | ||
) |
Routine used to get specific anchor elements. Unfortunitely position dependant. Call: mnvXpath:tributecaGetAnchors(//ul[@class='clump'], 3)
Definition at line 253 of file tributeca_api.py.
def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.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 261 of file tributeca_api.py.
nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.functList |
Definition at line 93 of file tributeca_api.py.
nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.TextTail |
Definition at line 94 of file tributeca_api.py.
Referenced by nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaLinkGeneration().
nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.anchorList |
Definition at line 95 of file tributeca_api.py.
Referenced by nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaGetAnchors().
nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.persistence |
Definition at line 96 of file tributeca_api.py.
Referenced by nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaIsCustomHTML(), nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaLinkGeneration(), and nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.tributecaThumbnailLink().