Skip to content

Commit

Permalink
F #4188: Enabled custom attributes at Python binding
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
  • Loading branch information
ms4ons committed Feb 5, 2024
1 parent b27b0d4 commit 631d8b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/oca/python/pyone/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_)

0 comments on commit 631d8b5

Please sign in to comment.