def set_object_status(self, statusdict):
        """
            Set statuses from a dictionary of format ``{name: status}``
        """
        for name, value in statusdict.items():
            getattr(self.system, name).status = value
        return True
def set_object_status ( self , statusdict ) : for name , value in statusdict . items ( ) : getattr ( self . system , name ) . status = value return True
Set statuses from a dictionary of format ``{name: status}``