def replace(self, p_todos):
        """ Replaces whole todolist with todo objects supplied as p_todos. """
        self.erase()
        self.add_todos(p_todos)
        self.dirty = True
def replace ( self , p_todos ) : self . erase ( ) self . add_todos ( p_todos ) self . dirty = True
Replaces whole todolist with todo objects supplied as p_todos.