(self, field)
| 95 | ) |
| 96 | |
| 97 | def validate_environment_ids(self, field): |
| 98 | if not self.project: |
| 99 | return |
| 100 | environment_ids = _parse_environment_ids(field.data) |
| 101 | if environment_ids is None: |
| 102 | raise ValidationError(_("Invalid environment selection.")) |
| 103 | field.data = environment_ids |
| 104 | for environment_id in environment_ids: |
| 105 | if not self.project.get_environment_by_id(environment_id): |
| 106 | raise ValidationError(_("Environment not found.")) |
| 107 | |
| 108 | |
| 109 | class StorageDeleteForm(StarletteForm): |
nothing calls this directly
no test coverage detected