class JobForm(FlaskForm): id = HiddenField() boolean_fields = HiddenField(default=('send_notification,' 'multiprocessing,' 'use_workflow_targets,' 'push_to_git')) list_fields = HiddenField(default='devices,pools') name = StringField() description = StringField() devices = MultipleObjectField('Device') multiprocessing = BooleanField() max_processes = IntegerField('Maximum number of processes', default=50) credentials = SelectField(choices=(('device', 'Device Credentials'), ('user', 'User Credentials'))) pools = MultipleObjectField('Pool') waiting_time = IntegerField('Waiting time (in seconds)', default=0) send_notification = BooleanField() send_notification_method = SelectField(choices=( ('mail_feedback_notification', 'Mail'), ('slack_feedback_notification', 'Slack'), ('mattermost_feedback_notification', 'Mattermost'), )) number_of_retries = IntegerField('Number of retries', default=0) time_between_retries = IntegerField('Time between retries (in seconds)', default=10) vendor = StringField() operating_system = StringField()
class JobForm(FlaskForm): id = HiddenField() boolean_fields = HiddenField(default=("display_only_failed_nodes," "send_notification," "multiprocessing," "use_workflow_targets," "push_to_git")) list_fields = HiddenField(default="devices,pools") name = StringField() description = StringField() devices = MultipleObjectField("Device") multiprocessing = BooleanField() max_processes = IntegerField("Maximum number of processes", default=50) credentials = SelectField(choices=(("device", "Device Credentials"), ("user", "User Credentials"))) pools = MultipleObjectField("Pool") waiting_time = IntegerField("Waiting time (in seconds)", default=0) send_notification = BooleanField() send_notification_method = SelectField(choices=( ("mail_feedback_notification", "Mail"), ("slack_feedback_notification", "Slack"), ("mattermost_feedback_notification", "Mattermost"), )) display_only_failed_nodes = BooleanField() mail_recipient = StringField() number_of_retries = IntegerField("Number of retries", default=0) time_between_retries = IntegerField("Time between retries (in seconds)", default=10) vendor = StringField() operating_system = StringField()
class AddUser(FlaskForm): list_fields = HiddenField(default="permissions") id = HiddenField() name = StringField() password = PasswordField() email = StringField() permission_choices = [(p, p) for p in user_permissions] permissions = SelectMultipleField(choices=permission_choices) pools = MultipleObjectField("Pool")
class AddJobForm(FlaskForm): list_fields = HiddenField(default='add_jobs') add_jobs = MultipleObjectField('Job')
class LogAutomationForm(FlaskForm): id = HiddenField() list_fields = HiddenField(default='jobs') name = StringField() jobs = MultipleObjectField('Job')
class DeviceAutomationForm(FlaskForm): list_fields = HiddenField(default='jobs') jobs = MultipleObjectField('Job')
class PoolObjectsForm(FlaskForm): list_fields = HiddenField(default='devices,links') devices = MultipleObjectField('Device') links = MultipleObjectField('Link')
class AddJobForm(FlaskForm): list_fields = HiddenField(default="add_jobs") add_jobs = MultipleObjectField("Job")
class PoolObjectsForm(FlaskForm): list_fields = HiddenField(default="devices,links") devices = MultipleObjectField("Device") links = MultipleObjectField("Link")
class DeviceAutomationForm(FlaskForm): list_fields = HiddenField(default="jobs") jobs = MultipleObjectField("Job")
class PoolRestrictionForm(FlaskForm): pools = MultipleObjectField("Pool")
class PollerForm(FlaskForm): devices = MultipleObjectField('Device') pools = MultipleObjectField('Pool') polling_frequency = IntegerField(default=3600) remote_git_repository = StringField()