You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by di...@apache.org on 2023/03/08 02:31:39 UTC
[allura] 03/04: [#8503] deprecation warnings - fix misc Decoration.validation -> Decoration.validations warning
This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch dw/8503
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 7bcf879009d6e7cf14497011a02872b638d99b95
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Wed Mar 8 02:28:44 2023 +0000
[#8503] deprecation warnings - fix misc Decoration.validation -> Decoration.validations warning
---
ForgeImporters/forgeimporters/base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ForgeImporters/forgeimporters/base.py b/ForgeImporters/forgeimporters/base.py
index bbafbe65e..59c729acf 100644
--- a/ForgeImporters/forgeimporters/base.py
+++ b/ForgeImporters/forgeimporters/base.py
@@ -348,7 +348,7 @@ class ToolImportControllerMeta(type):
the appropriate App for this controller's importer.
"""
- if hasattr(cls, 'create') and getattr(cls.create.decoration, 'validation', None) is None:
+ if hasattr(cls, 'create') and getattr(cls.create.decoration, 'validations', None) is None:
index_meth = getattr(cls.index, '__func__', cls.index)
cls.create = validate(cls.import_form(aslist(importer.target_app)[0]),
error_handler=index_meth)(cls.create)