docs: def all_requests_view(request):
      '''
      Show user a list of enabled request types, the number of requests of each
      type and a link to see them all.
      '''
      # Pseudo-dictionary, actually a list with items of form
      # (request_type.name.title(), number_of_type_requests, name, enabled,
      # glyphicon)
      types_dict = list()
      for request_type in RequestType.objects.all():
          requests = Request.objects.filter(request_type=request_type)
          # Hide the count for private requests
          if not request_type.managers.filter(incumbent__user=request.user):
              requests = requests.exclude(
                  ~Q(owner__user=request.user), private=True,
                  )
  
          number_of_requests = requests.count()
          types_dict.append((
              request_type.name.title(), number_of_requests,
              request_type.url_name, request_type.enabled,
              request_type.glyphicon,
              ))
      return render_to_response('all_requests.html', {
          'page_name': "Archives - All Requests",
          'types_dict': types_dict,
          }, context_instance=RequestContext(request))