diff options
Diffstat (limited to 'src/pdmgen.py')
-rwxr-xr-x | src/pdmgen.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pdmgen.py b/src/pdmgen.py index 693b149..9ed27cd 100755 --- a/src/pdmgen.py +++ b/src/pdmgen.py @@ -699,6 +699,21 @@ class Elog(Callback, Renderer): indent=indent) +class ResolveCallout(Callback, Renderer): + '''Handle the 'resolve callout' callback config file directive.''' + + def __init__(self, *a, **kw): + self.callout = kw.pop('callout') + super(ResolveCallout, self).__init__(**kw) + + def construct(self, loader, indent): + return self.render( + loader, + 'resolve_errors.mako.cpp', + c=self, + indent=indent) + + class Method(ConfigEntry, Renderer): '''Handle the method callback config file directive.''' @@ -869,6 +884,7 @@ class Everything(Renderer): 'elog': Elog, 'group': GroupOfCallbacks, 'method': Method, + 'resolve callout': ResolveCallout, }, 'condition': { 'count': CountCondition, |