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:
parent
14a2f13adc
commit
601bbb474f
@ -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_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user