You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2019/11/26 19:38:22 UTC
[allura] branch kt/trove_admin_refactor updated: fixup! Refactor
some trove admin bits, add some test coverage
This is an automated email from the ASF dual-hosted git repository.
kentontaylor pushed a commit to branch kt/trove_admin_refactor
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/kt/trove_admin_refactor by this push:
new fb11376 fixup! Refactor some trove admin bits, add some test coverage
fb11376 is described below
commit fb11376817621d3bc539f12a365a05dae5803681
Author: Kenton Taylor <kt...@slashdotmedia.com>
AuthorDate: Tue Nov 26 19:38:07 2019 +0000
fixup! Refactor some trove admin bits, add some test coverage
---
Allura/allura/controllers/trovecategories.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Allura/allura/controllers/trovecategories.py b/Allura/allura/controllers/trovecategories.py
index d0f191e..133638a 100644
--- a/Allura/allura/controllers/trovecategories.py
+++ b/Allura/allura/controllers/trovecategories.py
@@ -111,8 +111,8 @@ class TroveCategoryController(BaseController):
}
return dict(tree=OrderedDict(sorted(tree.iteritems())))
-
- def _create(self, name, upper_id, shortname):
+ @classmethod
+ def _create(cls, name, upper_id, shortname):
upper = M.TroveCategory.query.get(trove_cat_id=upper_id)
if upper_id == 0: