laptop and a wrench

漏洞

Unable to assign and set up group categories in Portal for ArcGIS 10.7.1 with ArcGIS Python API 1.6.1 and the CategorySchemaManager module.

上次发布: August 22, 2019 ArcGIS API for Python
漏洞 ID 编号 BUG-000124536
已提交August 15, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.6.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

In order for the categories to show up the schema property needs to be set using the CategorySchemaManager. If a group already exists in the portal, the most straightforward way is described below. Steps to make this work: 1. Create your group from an id: >>> TestGroup = Group(gis, "") 2. Use the categories property to create a CategorySchemaManager for the group >>> cats = TestGroup.categories 3. Assign the new Schema array of objects >>> new_categories = [ { "title": "test", "description": "Test root", "categories": [ { "title": "Category1", "description": "Category one", "categories": [ { "title": "Category2", "description": "Category two", "categories": [ {"title": "Another1", "description": "another one"} ], } ], } ], } ] >>> cats.schema = new_categories 4. Use the update method on the group to save and see in the GUI >>> TestGroup.update() Once you refresh the page on the portal, the new categories should be visible. Please also note the known limitation of only being able to have 5 category trees

解决办法

Manually create the Group Categories in Portal for ArcGIS 10.7.1 within the "Contents" tab of the Group.

重现步骤

漏洞 ID: BUG-000124536

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项