def toElement(self):
    element = xmppim.Message.toElement(self)
    form = data_form.Form('submit', formNamespace=NS_MUC_REQUEST)
    form.addField(data_form.Field(var='muc#role', value='participant', label='Requested role'))
    element.addChild(form.toElement())
    return element
def toElement(self):
    element = xmppim.Message.toElement(self)
    form = data_form.Form('submit', formNamespace=NS_MUC_REQUEST)
    form.addField(data_form.Field(var='muc#role', value='participant', label='Requested role'))
    element.addChild(form.toElement())
    return element