def rename_rater(self, name, new_name):
        """Rename event type."""
        for rater in self.root.iterfind('rater'):
            if rater.get('name') == name:
                rater.set('name', new_name)

        self.save()
def rename_rater ( self , name , new_name ) : for rater in self . root . iterfind ( 'rater' ) : if rater . get ( 'name' ) == name : rater . set ( 'name' , new_name ) self . save ( )
Rename event type.