update common

This commit is contained in:
ivan deng
2021-08-06 06:48:28 +08:00
parent 8933e59bf0
commit 40ab2bd157
5 changed files with 31 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ def app_relaxng(view_type):
""" Return a validator for the given view type, or None. """
if view_type not in _relaxng_cache:
# tree, search 特殊
if view_type in ['tree', 'search']:
if view_type in ['tree', 'search', 'pivot']:
_file = get_resource_path('app_common', 'rng', '%s_view.rng' % view_type)
else:
_file = get_resource_path('base', 'rng', '%s_view.rng' % view_type)