Example #1
0
def all_tools(request):
    if request.user.is_anonymous():
        return HttpResponseRedirect('/accounts/login')
    else:
        tools = toolUtil.getAllTools()
        context = {}
        context.update(csrf(request))
        context['tools'] = tools
        context.update(content.genBaseLoggedIn(request))
        return render_to_response('all_tools.html', context)
Example #2
0
def all_tools(request):
    if request.user.is_anonymous():
        return HttpResponseRedirect('/accounts/login')
    else:
        tools = toolUtil.getAllTools()
        context = {}
        context.update(csrf(request))
        context['tools'] = tools
        context.update(content.genBaseLoggedIn(request))
        return render_to_response('all_tools.html', context)
Example #3
0
 def test_GetAllTools(self):
     """
     """
     self.assertIn(self.ncTool, toolUtils.getAllTools())
Example #4
0
 def test_GetAllTools(self):
     """
     """
     self.assertIn (self.ncTool, toolUtils.getAllTools())