def METHOD_NAME(self):
    """Updates the editor when the object trait changes externally to the
    editor.
    """
    value = self.value
    if value:
        if self.minimum_datetime and self.minimum_datetime > value:
            value = self.minimum_datetime
        elif self.maximum_datetime and self.value > self.maximum_datetime:
            value = self.maximum_datetime
        try:
            q_datetime = QDateTime(value)
        except Exception:
            pass
        self.control.setDateTime(q_datetime)
        self.value = value