Exemple #1
0
 def add_field_for_type(self, field_name, ticket_type):
     assert not AgiloTicket(self.env, t_type=ticket_type).is_writeable_field(field_name)
     config = AgiloConfig(self.env)
     current_fields = config.get_list(ticket_type, section=AgiloConfig.AGILO_TYPES)
     config.change_option(ticket_type, ', '.join(current_fields + [field_name]), section=AgiloConfig.AGILO_TYPES)
     config.save()
     assert AgiloTicket(self.env, t_type=ticket_type).is_writeable_field(field_name)
Exemple #2
0
 def add_field_for_type(self, field_name, ticket_type):
     assert not AgiloTicket(
         self.env, t_type=ticket_type).is_writeable_field(field_name)
     config = AgiloConfig(self.env)
     current_fields = config.get_list(ticket_type,
                                      section=AgiloConfig.AGILO_TYPES)
     config.change_option(ticket_type,
                          ', '.join(current_fields + [field_name]),
                          section=AgiloConfig.AGILO_TYPES)
     config.save()
     assert AgiloTicket(self.env,
                        t_type=ticket_type).is_writeable_field(field_name)
Exemple #3
0
 def _set_sprint_date_normalization(self, enabled):
     config = AgiloConfig(self.env)
     config.change_option('sprints_can_start_or_end_on_weekends',
                          not enabled,
                          section=AgiloConfig.AGILO_GENERAL)
     config.save()
Exemple #4
0
 def _set_sprint_date_normalization(self, enabled):
     config = AgiloConfig(self.env)
     config.change_option('sprints_can_start_or_end_on_weekends', not enabled,
                          section=AgiloConfig.AGILO_GENERAL)
     config.save()