def __setitem__(self,item,val):
        if item in ['to','from']: val=JID(val)
        return self.setAttr(item,val)
Set the item 'item' to the value 'val'.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/Protocol.__setitem__