Back to index

moin  1.9.0~rc2
Functions | Variables
MoinMoin.filter.text_xml Namespace Reference

Functions

def execute

Variables

tuple logging = log.getLogger(__name__)
tuple rx_stripxml = re.compile("<[^>]*?>", re.DOTALL|re.MULTILINE)

Function Documentation

def MoinMoin.filter.text_xml.execute (   indexobj,
  filename 
)

Definition at line 18 of file text_xml.py.

00018 
00019 def execute(indexobj, filename):
00020     data = textfilter(indexobj, filename)
00021     try:
00022         data = " ".join(rx_stripxml.sub(" ", data).split())
00023     except RuntimeError, err:
00024         logging.error(str(err))
00025         data = ""
00026     return data
00027 

Variable Documentation

Definition at line 12 of file text_xml.py.

tuple MoinMoin.filter.text_xml.rx_stripxml = re.compile("<[^>]*?>", re.DOTALL|re.MULTILINE)

Definition at line 16 of file text_xml.py.