mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Improve readability of the artist facing report
This commit is contained in:
parent
d214f51dc5
commit
d0da71c45c
1 changed files with 9 additions and 3 deletions
|
|
@ -49,11 +49,17 @@ class ValidateNoNamespace(pyblish.api.InstancePlugin,
|
|||
invalid = self.get_invalid(instance)
|
||||
|
||||
if invalid:
|
||||
invalid_namespaces = {get_namespace(node) for node in invalid}
|
||||
raise PublishValidationError(
|
||||
"Namespaces found:\n\n{0}".format(
|
||||
_as_report_list(sorted(invalid))
|
||||
message="Namespaces found:\n\n{0}".format(
|
||||
_as_report_list(sorted(invalid_namespaces))
|
||||
),
|
||||
title="Namespaces in model"
|
||||
title="Namespaces in model",
|
||||
description=(
|
||||
"## Namespaces found in model\n"
|
||||
"It is not allowed to publish a model that contains "
|
||||
"namespaces."
|
||||
)
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue