Back to index

plone3  3.1.7
Classes | Functions
plone.app.linkintegrity.parser Namespace Reference

Classes

class  LinkParser

Functions

def search_attr
def extractLinks

Function Documentation

parse the given html and return all links 

Definition at line 31 of file parser.py.

00031 
00032 def extractLinks(data):
00033     """ parse the given html and return all links """
00034     parser = LinkParser()
00035     try:
00036         parser.feed(data)
00037         parser.close()
00038     except HTMLParseError:
00039         pass
00040     return parser.getLinks()
00041 

Here is the caller graph for this function:

def plone.app.linkintegrity.parser.search_attr (   name,
  attrs 
)
search named attribute in a list of attributes 

Definition at line 23 of file parser.py.

00023 
00024 def search_attr(name, attrs):
00025     """ search named attribute in a list of attributes """
00026     for attr, value in attrs:
00027         if attr == name:
00028             return [value]
00029     return []
00030 

Here is the caller graph for this function: