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:
[legend]
Collaboration diagram for nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions:
[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 74 of file tedtalksXSL_api.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 77 of file tedtalksXSL_api.py.

Member Function Documentation

◆ 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 230 of file tedtalksXSL_api.py.

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

◆ 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 216 of file tedtalksXSL_api.py.

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

◆ 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 181 of file tedtalksXSL_api.py.

◆ 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 98 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 191 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 204 of file tedtalksXSL_api.py.

Member Data Documentation

◆ descriptionFilter

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.descriptionFilter

◆ durationFilter

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.durationFilter

◆ flvPlayerLink

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.flvPlayerLink

◆ functList

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.functList

Definition at line 78 of file tedtalksXSL_api.py.

◆ namespaces

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.namespaces

◆ persistence

nv_python_libs.xsltfunctions.tedtalksXSL_api.xpathFunctions.persistence

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