def search_results_for_tag(context, request): results = [] if u"tag" in request.GET: # Single tag searching only, is allowed in default Kotti. Add-ons can # utilize search_content_for_tags(tags) to enable multiple tags # searching, but here it is called with a single tag. tags = [request.GET[u"tag"].strip()] results = search_content_for_tags(tags, request) return {"results": results}
def search_results_for_tag(context, request): results = [] if 'tag' in request.GET: # Single tag searching only, is allowed in default Kotti. Add-ons can # utilize search_content_for_tags(tags) to enable multiple tags # searching, but here it is called with a single tag. tags = [request.GET['tag'].strip()] results = search_content_for_tags(tags, request) return {'results': results}