def setRequired(self,req=1):
        if req: self.setTag('required')
        else:
            try: self.delChild('required')
            except ValueError: return
Change the state of the 'required' flag.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/DataField.setRequired