def _childParser_mucUser(self, element):
    '\n        Parse the MUC user extension element.\n        '
    for child in element.elements():
        if (child.uri != NS_MUC_USER):
            continue
        elif (child.name == 'status'):
            try:
                value = int(child.getAttribute('code'))
                statusCode = STATUS_CODE.lookupByValue(value)
            except (TypeError, ValueError):
                continue
            self.mucStatuses.add(statusCode)
        elif (child.name == 'item'):
            if child.hasAttribute('jid'):
                self.entity = jid.JID(child['jid'])
            self.nick = child.getAttribute('nick')
            self.affiliation = child.getAttribute('affiliation')
            self.role = child.getAttribute('role')
            for reason in child.elements(NS_MUC_ADMIN, 'reason'):
                self.reason = unicode(reason)
Parse the MUC user extension element.
def _childParser_mucUser(self, element):
    '\n        \n        '
    for child in element.elements():
        if (child.uri != NS_MUC_USER):
            continue
        elif (child.name == 'status'):
            try:
                value = int(child.getAttribute('code'))
                statusCode = STATUS_CODE.lookupByValue(value)
            except (TypeError, ValueError):
                continue
            self.mucStatuses.add(statusCode)
        elif (child.name == 'item'):
            if child.hasAttribute('jid'):
                self.entity = jid.JID(child['jid'])
            self.nick = child.getAttribute('nick')
            self.affiliation = child.getAttribute('affiliation')
            self.role = child.getAttribute('role')
            for reason in child.elements(NS_MUC_ADMIN, 'reason'):
                self.reason = unicode(reason)