Index: third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
index bb0b99d381f3e415576cf6e0ed9305b3740f6a08..2a229327b71301a4ce0658a902cd70a9cfbdb455 100644 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl |
@@ -6,6 +6,9 @@ |
import mojo_bindings.descriptor as _descriptor |
import mojo_bindings.reflection as _reflection |
+{% if interfaces %} |
+import mojo_bindings.interface_reflection as _interface_reflection |
+{% endif %} |
{% if imports %} |
{% for import in imports %} |
@@ -34,9 +37,10 @@ class {{struct|name}}(object): |
{% for interface in interfaces %} |
class {{interface|name}}(object): |
- __metaclass__ = _reflection.MojoInterfaceType |
+ __metaclass__ = _interface_reflection.MojoInterfaceType |
DESCRIPTOR = { |
'fully_qualified_name': '{% if namespace %}{{namespace|replace(".","::")}}::{% endif %}{{interface|fully_qualified_name|replace(".","::")}}', |
+ 'version': {{interface.version}}, |
'methods': [ |
{% for method in interface.methods %} |
{ |