1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F OpenNebula/one#4188: Enable Python binding custom attributes (#2923)

Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
(cherry picked from commit 4328a3295ddf410a32a9f94e7eabeee60e8f3e67)
This commit is contained in:
Mirko Stojiljković 2024-02-06 17:55:42 +01:00 committed by Tino Vázquez
parent 14a2f13adc
commit 601bbb474f
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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_)