24dbadf7dc
Add missing dependencies and files; Thank you to LeXofLeviafan and roughnecks.
15 lines
435 B
Python
15 lines
435 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
class DataForm:
|
|
|
|
def create_setting_entry(xmpp_instance, key : str, value : str):
|
|
form = xmpp_instance['xep_0004'].make_form('form', 'Settings')
|
|
form['type'] = 'result'
|
|
form.add_field(var=key, value=value)
|
|
return form
|
|
|
|
# def create_setting_entry(value : str):
|
|
# element = ET.Element('value')
|
|
# element.text = value
|
|
# return element
|