Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.parser.text_rst Namespace Reference

Classes

class  dummyIO
class  dummyUrllib2
class  ErrorParser
class  MoinWriter
class  Parser
class  RawHTMLList
class  MoinTranslator
class  MoinDirectives

Functions

def dummyOpen
def safe_import
def html_escape_unicode

Variables

list Dependencies = []
tuple docutils = html4css1dummyUrllib2()
 _ = lambdax:x
 Parser = ErrorParser

Function Documentation

def MoinMoin.parser.text_rst.dummyOpen (   x,
  y = None,
  z = None 
)

Definition at line 30 of file text_rst.py.

00030 
00031 def dummyOpen(x, y=None, z=None): return

Definition at line 96 of file text_rst.py.

00096 
00097 def html_escape_unicode(node):
00098     # Find Python function that does this for me. string.encode('ascii',
00099     # 'xmlcharrefreplace') only 2.3 and above.
00100     for i in node:
00101         if ord(i) > 127:
00102             node = node.replace(i, '&#%d;' % (ord(i)))
00103     return node

Here is the caller graph for this function:

def MoinMoin.parser.text_rst.safe_import (   name,
  globals = None,
  locals = None,
  fromlist = None 
)

Definition at line 78 of file text_rst.py.

00078 
00079 def safe_import(name, globals = None, locals = None, fromlist = None):
00080     mod = __builtin__.__import__(name, globals, locals, fromlist)
00081     if mod:
00082         mod.open = dummyOpen
00083         mod.urllib2 = dummyUrllib2
00084     return mod
00085 
00086 # Go through and change all docutils modules to use a dummyOpen and dummyUrllib2
00087 # module. Also make sure that any docutils imported modules also get the dummy
# implementations.

Variable Documentation

Definition at line 173 of file text_rst.py.

Definition at line 24 of file text_rst.py.

tuple MoinMoin.parser.text_rst.docutils = html4css1dummyUrllib2()

Definition at line 75 of file text_rst.py.

Definition at line 630 of file text_rst.py.