@handle_response_format
@treeio_login_required
@_process_mass_form
def category_view(request, categoryPath, response_format='html'):
 try:
  category = KnowledgeCategory.by_path(categoryPath)
 except KnowledgeCategory.DoesNotExist:
  raise Http404
 items = Object.filter_permitted(manager=KnowledgeItem.objects, user=request.user.profile, mode='r')
 if (not request.user.profile.has_permission(category)):
  return user_denied(request, message="You don't have access to this Knowledge Category")
 context = _get_default_context(request)
 context.update({'category': category, 'items': items})
 return render_to_response('knowledge/category_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def category_view ( request , categoryPath , response_format = 'html' ) : try : category = KnowledgeCategory . by_path ( categoryPath ) except KnowledgeCategory . DoesNotExist : raise Http404 items = Object . filter_permitted ( manager = KnowledgeItem . objects , user = request . user . profile , mode = 'r' ) if ( not request . user . profile . has_permission ( category ) ) : return user_denied ( request , message = "You don't have access to this Knowledge Category" ) context = _get_default_context ( request ) context . update ( { 'category' : category , 'items' : items } ) return render_to_response ( 'knowledge/category_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
single knowledge category view page .