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:34:10 +0200
commit14fd6b486cbbfbea4e4ee60f9f9a40e35ac9b3f2 (patch)
tree4f2f902bb837fedf04f6812ebaaf4a82b3bd3569 /reconfigure/items/bound.py
parent47946d0a8a68a8e260c9a44e8b2ab448b86f946e (diff)
parentb50a7a9f6a102709eacd1335c00a1e0d0b259b8e (diff)
Merge the new upstream version.
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()