def build_obj(self): """Builds an object from a CycleTask entity object.""" return workflow_entity_factory.CycleTaskFactory().create_empty( title=self.title, state=self.state, due_date=date_utils.str_to_date(self.due_date, "%m/%d/%Y"), )
def build_obj(self): """Builds an object from a CycleTask entity object.""" return workflow_entity_factory.CycleTaskFactory().create_empty( title=self.title, state=self.state, due_date=date_utils.str_to_date(self.due_date, "%m/%d/%Y"), )
def str_to_date(date_str): """Converts date string to the date object.""" return date_utils.str_to_date(date_str, "%m/%d/%Y")
def _fill_input_field(self, value): """Fills input field.""" self._datepicker.set_value(date_utils.str_to_date(value, "%Y-%m-%d"))
def str_to_date(date_str): """Converts date string to the date object.""" return date_utils.str_to_date(date_str, "%m/%d/%Y")
def due_date(self): """Returns workflow cycle due date.""" return date_utils.str_to_date(self.text_for_header("End Date"), "%m/%d/%Y")
def due_date(self): """Returns workflow cycle due date.""" return date_utils.str_to_date(self.text_for_header("End Date"), "%m/%d/%Y")
def _fill_input_field(self, value): """Fills input field.""" self._datepicker.set_value(date_utils.str_to_date(value, "%Y-%m-%d"))