Package pyxb :: Package utils :: Module templates
[hide private]
[frames] | no frames]

Module templates

source code

Functions that aid with generating text from templates and maps.

Functions [hide private]
 
_bodyIfDefinedPattern(match_object, dictionary) source code
 
_bodyConditionalPattern(match_object, dictionary) source code
 
replaceInText(text, **dictionary) source code
Variables [hide private]
  _substIdPattern = re.compile(r'%\{(?P<id>\w+)\}')
  _substConditionalPattern = re.compile(r'(?ms)%\{\?(?P<expr>.+?...
  _substIfDefinedPattern = re.compile(r'(?ms)%\{\?(?P<id>\w+)(\?...
  _substDefinedBodyPattern = re.compile(r'\?@')
  __package__ = 'pyxb.utils'
Variables Details [hide private]

_substConditionalPattern

Value:
re.compile(r'(?ms)%\{\?(?P<expr>.+?)\?\?(?P<true>.*?)(\?:(?P<false>.*?\
))?\?\}')

_substIfDefinedPattern

Value:
re.compile(r'(?ms)%\{\?(?P<id>\w+)(\?\+(?P<repl>.*?))?(\?-(?P<ndrepl>.\
*?))?\?\}')