Module malcontent :: Class LinkRule
[show private | hide private]
[frames | no frames]

Class LinkRule

Rule --+
       |
      LinkRule


This rule applies regular expressions to certain link types.
Method Summary
  __init__(self, reMap, reFlags)
Creates a new LinkRule
  __call__(self, site)
Applies the rule to the given site.

Class Variable Summary
    Inherited from Rule
int EVIL = 2                                                                     
int GOOD = 0                                                                     
int MAY_BE_EVIL = 1                                                                     

Method Details

__init__(self, reMap, reFlags=66)
(Constructor)

Creates a new LinkRule
Parameters:
reMap - a map which maps regular expression strings to tuples of the form (exploitName, linkTypes, level) where exploitName is the name of the exploit, linkTypes is a list of link types on which to match the regular expression (see orchid.OrchidExtractor for more detail), and level is the level of maliciousness for example: Rule.EVIL

__call__(self, site)
(Call operator)

Applies the rule to the given site.
Overrides:
malcontent.Rule.__call__

Generated by Epydoc 2.1 on Mon Dec 12 14:30:34 2005 http://epydoc.sf.net