mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 14:03:20 +09:00
F OpenNebula/one#4188: Enable Python binding custom attributes (#2923)
Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
(cherry picked from commit 4328a3295d)
This commit is contained in:
1 parent
14a2f13adc
commit
601bbb474f
1 file changed
+3
@@ -174,6 +174,9 @@ class TemplatedType(object):
|
||||
'''
|
||||
Mixin class for Templated bindings
|
||||
'''
|
||||
def _buildAttributes(self, node, attrs, already_processed):
|
||||
vars(self)['custom_attrs'] = dict(attrs)
|
||||
|
||||
def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
|
||||
if not build_template_node(self, nodeName_, child_):
|
||||
super(TemplatedType, self)._buildChildren(child_,node,nodeName_,fromsubclass_,gds_collector_)
|
||||
Reference in new issue
Block a user