pyloxi: use the ofclass subtemplate for messages
The only difference was the special case for the default XID.
diff --git a/py_gen/templates/_ofclass.py b/py_gen/templates/_ofclass.py
index 695cce6..6116c78 100644
--- a/py_gen/templates/_ofclass.py
+++ b/py_gen/templates/_ofclass.py
@@ -11,7 +11,12 @@
if ${m.name} != None:
self.${m.name} = ${m.name}
else:
+:: if m.name == 'xid':
+:: # HACK for message xid
+ self.${m.name} = None
+:: else:
self.${m.name} = ${py_gen.oftype.gen_init_expr(m.oftype, version=version)}
+:: #endif
:: #endfor
return