Module xyaptu :: Class xcopier
[hide private]
[frames] | no frames]

Class xcopier

source code

copier --+
         |
        xcopier

xcopier class, inherits from yaptu.copier

Instance Methods [hide private]
 
__init__(self, dns, rExpr=None, rOpen=None, rClose=None, rClause=None, ouf=sys.stdout, dbg=0, dbgOuf=sys.stdout)
set default regular expressions required by yaptu.copier
source code
 
xcopy(self, inputText)
Converts the value of the input stream (or contents of input filename) from xyaptu format to yaptu format, and invokes yaptu.copy
source code
 
setupxcopy(self, inputText) source code
 
xcopywithdns(self, dns) source code
 
_x2y_translate(self, xStr)
Converts xyaptu markup in input string to yaptu delimeters
source code
 
_handleBadExps(self, s, locals=None, globals=None)
Handle expressions that do not evaluate
source code
 
_preProcess(self, s, why)
Preprocess embedded python statements and expressions
source code
 
_preProcessDbg(self, s, why)
Preprocess embedded python statements and expressions
source code
 
_xmlDecode(self, s)
Returns the ASCII decoded version of the given HTML string.
source code

Inherited from copier: copy, copyblock

Class Variables [hide private]
  _xmlCodes = [['"', '&quot;'], ['>', '&gt;'], ['<', '&lt;'], ['...
Method Details [hide private]

__init__(self, dns, rExpr=None, rOpen=None, rClose=None, rClause=None, ouf=sys.stdout, dbg=0, dbgOuf=sys.stdout)
(Constructor)

source code 

set default regular expressions required by yaptu.copier

Overrides: copier.__init__

Class Variable Details [hide private]

_xmlCodes

Value:
[['"', '&quot;'], ['>', '&gt;'], ['<', '&lt;'], ['&', '&amp;']]