MythTV  master
Public Member Functions | Public Attributes | List of all members
nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions Class Reference
Inheritance diagram for nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions:
Inheritance graph
[legend]
Collaboration diagram for nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions:
Collaboration graph
[legend]

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
 

Detailed Description

Functions specific extending XPath

Definition at line 89 of file tributeca_api.py.

Constructor & Destructor Documentation

◆ __init__()

def nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.__init__ (   self)

Definition at line 92 of file tributeca_api.py.

Member Function Documentation

◆ tributecaLinkGeneration()

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.

◆ tributecaThumbnailLink()

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.

◆ tributecaTopTenTitle()

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.

◆ tributecaIsCustomHTML()

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.

◆ tributecaCheckIfDBItem()

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.

◆ tributecaGetAnchors()

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.

◆ tributecaDebug()

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.

Member Data Documentation

◆ functList

nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.functList

Definition at line 93 of file tributeca_api.py.

◆ TextTail

nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.TextTail

◆ anchorList

nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.anchorList

◆ persistence

nv_python_libs.xsltfunctions.tributeca_api.xpathFunctions.persistence

The documentation for this class was generated from the following file: