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

Public Member Functions

def __init__ (self)
 
def spitzerLinkGeneration (self, context, *args)
 Start of XPath extension functions. More...
 
def spitzerThumbnailLink (self, context, *args)
 
def spitzerCheckIfDBItem (self, context, *arg)
 

Public Attributes

 functList
 
 TextTail
 
 persistence
 
 htmlParser
 

Detailed Description

Functions specific extending XPath

Definition at line 90 of file spitzer_api.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 93 of file spitzer_api.py.

Member Function Documentation

◆ spitzerLinkGeneration()

def nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.spitzerLinkGeneration (   self,
  context,
args 
)

Start of XPath extension functions.

Generate a link for the www.spitzer.caltech.edu site.
Call example: 'mnvXpath:spitzerLinkGeneration(normalize-space(link), $paraMeter)'
return the url link

Definition at line 106 of file spitzer_api.py.

◆ spitzerThumbnailLink()

def nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.spitzerThumbnailLink (   self,
  context,
args 
)
Verify that the thumbnail actually exists. If it does not then use the site image.
Call example: 'mnvXpath:spitzerThumbnailLink('dummy')'
return the thumbnail url

Definition at line 149 of file spitzer_api.py.

◆ spitzerCheckIfDBItem()

def nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.spitzerCheckIfDBItem (   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:spitzerCheckIfDBItem(title, author, description)'
return True if a match was found
return False if a match was not found

Definition at line 160 of file spitzer_api.py.

Member Data Documentation

◆ functList

nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.functList

Definition at line 94 of file spitzer_api.py.

◆ TextTail

nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.TextTail

◆ persistence

nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.persistence

◆ htmlParser

nv_python_libs.xsltfunctions.spitzer_api.xpathFunctions.htmlParser

Definition at line 97 of file spitzer_api.py.


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