Recognize plugin stanzas when they're appended.

This commit is contained in:
Lance Stout 2012-10-18 12:26:17 -07:00
parent 4190027a78
commit d367fb938d

View file

@ -1217,6 +1217,10 @@ class ElementBase(object):
if item.__class__ in self.plugin_iterables:
if item.__class__.plugin_multi_attrib:
self.init_plugin(item.__class__.plugin_multi_attrib)
elif item.__class__ == self.plugin_tag_map.get(item.tag_name(), None):
self.init_plugin(item.plugin_attrib,
existing_xml=item.xml,
reuse=False)
return self
def appendxml(self, xml):