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"),
   )
示例#2
0
 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"),
   )
示例#3
0
def str_to_date(date_str):
  """Converts date string to the date object."""
  return date_utils.str_to_date(date_str, "%m/%d/%Y")
示例#4
0
 def _fill_input_field(self, value):
     """Fills input field."""
     self._datepicker.set_value(date_utils.str_to_date(value, "%Y-%m-%d"))
示例#5
0
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")
示例#7
0
 def due_date(self):
   """Returns workflow cycle due date."""
   return date_utils.str_to_date(self.text_for_header("End Date"), "%m/%d/%Y")
示例#8
0
 def _fill_input_field(self, value):
   """Fills input field."""
   self._datepicker.set_value(date_utils.str_to_date(value, "%Y-%m-%d"))