mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
This commit is contained in:
commit
628978fc8c
1 changed files with 2 additions and 6 deletions
|
@ -221,9 +221,7 @@ class Options(ElementBase):
|
||||||
|
|
||||||
def getOptions(self):
|
def getOptions(self):
|
||||||
config = self.xml.find('{jabber:x:data}x')
|
config = self.xml.find('{jabber:x:data}x')
|
||||||
form = xep_0004.Form()
|
form = xep_0004.Form(xml=config)
|
||||||
if config is not None:
|
|
||||||
form.fromXML(config)
|
|
||||||
return form
|
return form
|
||||||
|
|
||||||
def setOptions(self, value):
|
def setOptions(self, value):
|
||||||
|
@ -254,9 +252,7 @@ class PublishOptions(ElementBase):
|
||||||
|
|
||||||
def get_publish_options(self):
|
def get_publish_options(self):
|
||||||
config = self.xml.find('{jabber:x:data}x')
|
config = self.xml.find('{jabber:x:data}x')
|
||||||
form = xep_0004.Form()
|
form = xep_0004.Form(xml=config)
|
||||||
if config is not None:
|
|
||||||
form.fromXML(config)
|
|
||||||
return form
|
return form
|
||||||
|
|
||||||
def set_publish_options(self, value):
|
def set_publish_options(self, value):
|
||||||
|
|
Loading…
Reference in a new issue