Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab
[myslice.git] / portal / slicetabtestbeds.py
1 from django.template                 import RequestContext
2 from django.shortcuts                import render_to_response
3
4 from unfold.loginrequired           import LoginRequiredView
5
6 from myslice.theme import ThemeView
7
8 class SliceTabTestbeds (LoginRequiredView, ThemeView):
9     template_name = "slice-tab-testbeds.html"
10     
11     def get(self, request, slicename):
12         return render_to_response(self.template, {"theme": self.theme, "username": request.user, "slice" : slicename, "section":"testbeds"}, context_instance=RequestContext(request))