76 yield report_problem( |
76 yield report_problem( |
77 'physical-colour-part', |
77 'physical-colour-part', |
78 bad_object = model.body[model.header.first_occurrence['part type']], |
78 bad_object = model.body[model.header.first_occurrence['part type']], |
79 ) |
79 ) |
80 |
80 |
81 @problem_type('official-part', |
81 @problem_type('unofficial-part', |
82 severity = 'hold', |
82 severity = 'hold', |
83 message = 'new parts must be unofficial', |
83 message = 'new parts must be unofficial', |
84 ) |
84 ) |
85 def unofficiality_test(model): |
85 def unofficiality_test(model): |
86 if model.header.valid and not model.header.filetype.startswith('Unofficial_'): |
86 if model.header.valid and not model.header.filetype.startswith('Unofficial_'): |