Package pywikipedia :: Module replace :: Class ReplaceRobot
[show private | hide private]
[frames | no frames]

Class ReplaceRobot


Method Summary
  __init__(self, generator, replacements, exceptions, regex, acceptall)
  checkExceptions(self, original_text)
If one of the exceptions applies for the given text, returns the substring.
  doReplacements(self, original_text)
Returns the text which is generated by applying all replacements to the given text.
  run(self)
Starts the robot.

Method Details

checkExceptions(self, original_text)

If one of the exceptions applies for the given text, returns the substring. which matches the exception. Otherwise it returns None.

doReplacements(self, original_text)

Returns the text which is generated by applying all replacements to the given text.

run(self)

Starts the robot.

Generated by Epydoc 2.1 on Sun Jul 03 17:07:35 2005 http://epydoc.sf.net