Package grizzled :: Module config :: Class _ConfigTemplate
[hide private]
[frames] | no frames]

Class _ConfigTemplate

source code

     object --+    
              |    
string.Template --+
                  |
                 _ConfigTemplate

Subclass of string.Template that handles our configuration variable reference syntax.
Nested Classes [hide private]

Inherited from string.Template: __metaclass__

Instance Methods [hide private]

Inherited from string.Template: __init__, safe_substitute, substitute

Inherited from string.Template (private): _invalid

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  idpattern = '([_.a-zA-Z][_.a-zA-Z0-9]+):([_a-zA-Z][_a-zA-Z0-9]...
  pattern = re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>([_...

Inherited from string.Template: delimiter

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

idpattern

Value:
'([_.a-zA-Z][_.a-zA-Z0-9]+):([_a-zA-Z][_a-zA-Z0-9]+)(\\?[^}]+)?|([_a-z\
A-Z][_a-zA-Z0-9]+)(\\?[^}]+)?'

pattern

Value:
re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>([_\.a-zA-Z][_\.a-zA-\
Z0-9]+):([_a-zA-Z][_a-zA-Z0-9]+)(\?[^\}]+)?|([_a-zA-Z][_a-zA-Z0-9]+)(\\
?[^\}]+)?)|\{(?P<braced>([_\.a-zA-Z][_\.a-zA-Z0-9]+):([_a-zA-Z][_a-zA-\
Z0-9]+)(\?[^\}]+)?|([_a-zA-Z][_a-zA-Z0-9]+)(\?[^\}]+)?)\}|(?P<invalid>\
))')