Robot Framework Integrated Development Environment (RIDE)
robotide.preferences.configobj.TemplateInterpolation Class Reference

Behaves like string.Template. More...

Inheritance diagram for robotide.preferences.configobj.TemplateInterpolation:
robotide.preferences.configobj.InterpolationEngine

Private Member Functions

def _parse_match (self, match)
 Implementation-dependent helper function. More...
 

Static Private Attributes

string _cookie
 
string _delimiter
 
 _KEYCRE
 

Additional Inherited Members

- Public Member Functions inherited from robotide.preferences.configobj.InterpolationEngine
def __init__ (self, section)
 
def interpolate (self, key, value)
 
- Public Attributes inherited from robotide.preferences.configobj.InterpolationEngine
 section
 

Detailed Description

Behaves like string.Template.

Definition at line 439 of file configobj.py.

Member Function Documentation

◆ _parse_match()

def robotide.preferences.configobj.TemplateInterpolation._parse_match (   self,
  match 
)
private

Implementation-dependent helper function.

    Will be passed a match object corresponding to the interpolation
    key we just found (e.g., "%(foo)s" or "$foo"). Should look up that
    key in the appropriate config file section (using the ``_fetch()``
    helper function) and return a 3-tuple: (key, value, section)

    ``key`` is the name of the key we're looking for
    ``value`` is the value found for that key
    ``section`` is a reference to the section where it was found

    ``key`` and ``section`` should be None if no further
    interpolation should be performed on the resulting value
    (e.g., if we interpolated "$$" and returned "$").

Reimplemented from robotide.preferences.configobj.InterpolationEngine.

Definition at line 459 of file configobj.py.

Member Data Documentation

◆ _cookie

robotide.preferences.configobj.TemplateInterpolation._cookie
staticprivate

Definition at line 443 of file configobj.py.

◆ _delimiter

robotide.preferences.configobj.TemplateInterpolation._delimiter
staticprivate

Definition at line 447 of file configobj.py.

◆ _KEYCRE

robotide.preferences.configobj.TemplateInterpolation._KEYCRE
staticprivate

Definition at line 451 of file configobj.py.


The documentation for this class was generated from the following file: