summaryrefslogtreecommitdiff
path: root/reconfigure/items/bound.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2018-04-25 14:33:27 +0200
committerAndrew Shadura <andrewsh@debian.org>2018-04-25 14:33:27 +0200
commitb50a7a9f6a102709eacd1335c00a1e0d0b259b8e (patch)
tree481b20200ab0c34e1f0d829d8b4b8d17dceaadcd /reconfigure/items/bound.py
parent2989b4c027b3230b1778e3777d2cce53c89808d9 (diff)
New upstream version 0.1.81+git20171214.2b8729a8
Diffstat (limited to 'reconfigure/items/bound.py')
-rw-r--r--reconfigure/items/bound.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/reconfigure/items/bound.py b/reconfigure/items/bound.py
index fed73f4..7570fe7 100644
--- a/reconfigure/items/bound.py
+++ b/reconfigure/items/bound.py
@@ -144,6 +144,7 @@ class BoundData (object):
if node is None:
node = self.template(**kwargs)
self._node = node
+ self.bind_attribute('_extra_content', '_extra_content')
def template(self, **kwargs):
"""
@@ -157,6 +158,8 @@ class BoundData (object):
res_dict = {}
for attr_key in self.__class__.__dict__:
if attr_key in self.__class__._bound:
+ if attr_key == '_extra_content':
+ continue
attr_value = getattr(self, attr_key)
if isinstance(attr_value, BoundData):
res_dict[attr_key] = attr_value.to_dict()