mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Ensure that stanza plugins work as expected if the XML is appended.
This commit is contained in:
parent
e8545dd2bc
commit
1a61bdb302
1 changed files with 2 additions and 1 deletions
|
@ -345,7 +345,8 @@ class ElementBase(object):
|
|||
"""
|
||||
if attrib not in self.plugins:
|
||||
plugin_class = self.plugin_attrib_map[attrib]
|
||||
plugin = plugin_class(parent=self)
|
||||
existing_xml = self.xml.find(plugin_class.tag_name())
|
||||
plugin = plugin_class(parent=self, xml=existing_xml)
|
||||
self.plugins[attrib] = plugin
|
||||
if plugin_class in self.plugin_iterables:
|
||||
self.iterables.append(plugin)
|
||||
|
|
Loading…
Reference in a new issue