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

Public Member Functions

def __init__ (self)
 
def tedtalksMakeItem (self, context, *arg)
 Start of XPath extension functions. More...
 
def tedtalksGetItem (self, context, *arg)
 
def tedtalksMakeLink (self, context, *arg)
 
def tedtalksTitleRSS (self, context, *arg)
 
def stripSubstring (self, string, startText, terminatorChar)
 
def parameterArgs (self, parameters, terminatorChar=';')
 

Public Attributes

 functList
 
 namespaces
 
 descriptionFilter
 
 durationFilter
 
 persistence
 
 flvPlayerLink
 

Detailed Description

Functions specific extending XPath

Definition at line 89 of file tedtalksXSL_api.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 92 of file tedtalksXSL_api.py.

Member Function Documentation

◆ tedtalksMakeItem()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksMakeItem (   self,
  context,
arg 
)

Start of XPath extension functions.

Generate item elements from a Video HTML page on the TedTalks site.
Call example: 'mnvXpath:tedtalksMakeItem(concat('http://www.ted.com', normalize-space(./@href), $paraMeter))/link'
return an number of item elements

Definition at line 113 of file tedtalksXSL_api.py.

◆ tedtalksGetItem()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksGetItem (   self,
  context,
arg 
)
Return item elements that were previously created in "tedtalksMakeItem" call
Call example: 'mnvXpath:tedtalksGetItem(concat('http://www.ted.com', normalize-space(./@href))/*'
return an number of item elements

Definition at line 196 of file tedtalksXSL_api.py.

◆ tedtalksMakeLink()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksMakeLink (   self,
  context,
arg 
)
Return item elements that were previously created in "tedtalksMakeItem" call
Call example: 'mnvXpath:tedtalksMakeLink(enclosure/@url, $paraMeter)'
return a link for playing the flv file

Definition at line 206 of file tedtalksXSL_api.py.

◆ tedtalksTitleRSS()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksTitleRSS (   self,
  context,
arg 
)
Return item elements that were previously created in "tedtalksMakeItem" call
Call example: 'mnvXpath:tedtalksTitleRSS(string(title))'
return a massaged title string

Definition at line 219 of file tedtalksXSL_api.py.

◆ stripSubstring()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.stripSubstring (   self,
  string,
  startText,
  terminatorChar 
)
Return a substring terminated by specific character(s)
return a substring

Definition at line 231 of file tedtalksXSL_api.py.

Referenced by nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksMakeItem().

◆ parameterArgs()

def nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.parameterArgs (   self,
  parameters,
  terminatorChar = ';' 
)
Set the parameters for TedTalks
return a dictionary of parameters

Definition at line 245 of file tedtalksXSL_api.py.

Referenced by nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksMakeItem(), and nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.tedtalksMakeLink().

Member Data Documentation

◆ functList

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.functList

Definition at line 93 of file tedtalksXSL_api.py.

◆ namespaces

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.namespaces

Definition at line 94 of file tedtalksXSL_api.py.

◆ descriptionFilter

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.descriptionFilter

◆ durationFilter

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.durationFilter

◆ persistence

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.persistence

◆ flvPlayerLink

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.flvPlayerLink

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