@handle_response_format
@treeio_login_required
@_process_mass_form
def folder_view(request, folderPath, response_format='html'):
 folder = KnowledgeFolder.by_path(folderPath)
 if (not folder):
  raise Http404
 if (not request.user.profile.has_permission(folder)):
  return user_denied(request, message="You don't have access to this Knowledge Type")
 items = Object.filter_by_request(request, manager=KnowledgeItem.objects.filter(folder=folder))
 subfolders = KnowledgeFolder.objects.filter(parent=folder)
 context = _get_default_context(request)
 context.update({'items': items, 'folder': folder, 'subfolders': subfolders})
 return render_to_response('knowledge/folder_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def folder_view ( request , folderPath , response_format = 'html' ) : folder = KnowledgeFolder . by_path ( folderPath ) if ( not folder ) : raise Http404 if ( not request . user . profile . has_permission ( folder ) ) : return user_denied ( request , message = "You don't have access to this Knowledge Type" ) items = Object . filter_by_request ( request , manager = KnowledgeItem . objects . filter ( folder = folder ) ) subfolders = KnowledgeFolder . objects . filter ( parent = folder ) context = _get_default_context ( request ) context . update ( { 'items' : items , 'folder' : folder , 'subfolders' : subfolders } ) return render_to_response ( 'knowledge/folder_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
single knowledge folder view page .