def toElement(self):
    element = generic.Request.toElement(self)
    element.addElement((NS_MUC_OWNER, 'query'))
    element.query.addElement('destroy')
    if self.alternate:
        element.query.destroy['jid'] = self.alternate.full()
        if self.password:
            element.query.destroy.addElement('password', content=self.password)
    if self.reason:
        element.query.destroy.addElement('reason', content=self.reason)
    return element
def toElement(self):
    element = generic.Request.toElement(self)
    element.addElement((NS_MUC_OWNER, 'query'))
    element.query.addElement('destroy')
    if self.alternate:
        element.query.destroy['jid'] = self.alternate.full()
        if self.password:
            element.query.destroy.addElement('password', content=self.password)
    if self.reason:
        element.query.destroy.addElement('reason', content=self.reason)
    return element