def indexer(request): if not request.user.has_hue_permission(action="access", app='search'): raise PopupException(_('Missing permission.'), error_code=403) searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render( 'indexer.mako', request, { 'is_embeddable': request.GET.get('is_embeddable', False), 'indexes_json': json.dumps(indexes), 'fields_json': json.dumps([field.name for field in FIELD_TYPES]), 'operators_json': json.dumps([operator.to_dict() for operator in OPERATORS]), 'file_types_json': json.dumps([ format_.format_info() for format_ in get_file_indexable_format_types() ]), 'default_field_type': json.dumps(Field().to_dict()) })
def indexes(request): searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render('indexes.mako', request, {'indexes_json': json.dumps(indexes)})
def indexes(request): searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render('indexes.mako', request, { 'indexes_json': json.dumps(indexes) })
def indexes(request): if not request.user.has_hue_permission(action="access", app='search'): raise PopupException(_('Missing permission.'), error_code=403) searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render('indexes.mako', request, {'indexes_json': json.dumps(indexes)})
def indexer(request): searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render('indexer.mako', request, { 'indexes_json': json.dumps(indexes), 'fields_json' : json.dumps([field.name for field in Field.TYPES]), 'operators_json' : json.dumps([operator.to_dict() for operator in Field.OPERATORS]) })
def indexer(request): searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render('indexer.mako', request, { 'indexes_json': json.dumps(indexes), 'fields_json' : json.dumps([field.name for field in FIELD_TYPES]), 'operators_json' : json.dumps([operator.to_dict() for operator in OPERATORS]), 'file_types_json' : json.dumps([format_.format_info() for format_ in get_format_types()]), 'default_field_type' : json.dumps(Field().to_dict()) })
def indexer(request): searcher = IndexController(request.user) indexes = searcher.get_indexes() for index in indexes: index['isSelected'] = False return render( 'indexer.mako', request, { 'indexes_json': json.dumps(indexes), 'fields_json': json.dumps([field.name for field in FIELD_TYPES]), 'operators_json': json.dumps([operator.to_dict() for operator in OPERATORS]), 'file_types_json': json.dumps( [format_.format_info() for format_ in get_format_types()]), 'default_field_type': json.dumps(Field().to_dict()) })