@classmethod
def fromElement(Class, element):
    item = Class()
    if element.hasAttribute('jid'):
        item.entity = jid.JID(element['jid'])
    item.nick = element.getAttribute('nick')
    item.affiliation = element.getAttribute('affiliation')
    item.role = element.getAttribute('role')
    for child in element.elements(NS_MUC_ADMIN, 'reason'):
        item.reason = unicode(child)
    return item
@classmethod
def fromElement(Class, element):
    item = Class()
    if element.hasAttribute('jid'):
        item.entity = jid.JID(element['jid'])
    item.nick = element.getAttribute('nick')
    item.affiliation = element.getAttribute('affiliation')
    item.role = element.getAttribute('role')
    for child in element.elements(NS_MUC_ADMIN, 'reason'):
        item.reason = unicode(child)
    return item