Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.linkintegrity.parser.LinkParser Class Reference
Inheritance diagram for plone.app.linkintegrity.parser.LinkParser:
Inheritance graph
[legend]
Collaboration diagram for plone.app.linkintegrity.parser.LinkParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getLinks
def handle_starttag

Public Attributes

 links

Detailed Description

a simple html parser for link and image urls 

Definition at line 4 of file parser.py.


Constructor & Destructor Documentation

Definition at line 7 of file parser.py.

00007 
00008     def __init__(self):
00009         HTMLParser.__init__(self)
00010         self.links = []

Here is the caller graph for this function:


Member Function Documentation

return all links found during parsing 

Definition at line 11 of file parser.py.

00011 
00012     def getLinks(self):
00013         """ return all links found during parsing """
00014         return tuple(self.links)

Here is the caller graph for this function:

def plone.app.linkintegrity.parser.LinkParser.handle_starttag (   self,
  tag,
  attrs 
)
override the method to remember all links 

Definition at line 15 of file parser.py.

00015 
00016     def handle_starttag(self, tag, attrs):
00017         """ override the method to remember all links """
00018         if tag == 'a':
00019             self.links.extend(search_attr('href', attrs))
00020         if tag == 'img':
00021             self.links.extend(search_attr('src', attrs))
00022 

Here is the call graph for this function:


Member Data Documentation

Definition at line 9 of file parser.py.


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