commit | d45675923255205e4e2feec76eed35276e484082 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <sapan@opennetworking.org> | Mon Jul 24 17:26:26 2017 -0400 |
committer | Sapan Bhatia <sapan@opennetworking.org> | Mon Jul 24 17:26:26 2017 -0400 |
tree | f13efa78132ad8bf686dee6c8ddeed594a46ad58 | |
parent | 767884cbe3ed6c596fb663c47361c85300fc1378 [diff] |
Added xproto method for debugging jinja templates Change-Id: I2e53b8be5cb54d86ae0ebb0bb600539468e246bc
diff --git a/lib/xos-genx/xosgenx/jinja2_extensions/base.py b/lib/xos-genx/xosgenx/jinja2_extensions/base.py index df57858..029f6eb 100644 --- a/lib/xos-genx/xosgenx/jinja2_extensions/base.py +++ b/lib/xos-genx/xosgenx/jinja2_extensions/base.py
@@ -6,6 +6,10 @@ def __init__(self, message): super(FieldNotFound, self).__init__(message) +def xproto_debug(**kwargs): + print kwargs + pdb.set_trace() + def xproto_unquote(s): return unquote(s)