added request for metadata calls to be able to handle errors in messages
[myslice.git] / portal / platformview.py
index 16148ee..69fd1b0 100644 (file)
@@ -1,19 +1,18 @@
-from django.views.generic.base   import TemplateView
-
 from manifold.core.query         import Query
 from unfold.page                 import Page
 
+from unfold.loginrequired        import FreeAccessView
 from ui.topmenu                  import topmenu_items, the_user
 
 from plugins.hazelnut            import Hazelnut
 
 # View for 1 platform and its details
-class PlatformView(TemplateView):
+class PlatformView(FreeAccessView):
     template_name = "platform.html"
 
     def get_context_data(self, **kwargs):
         page = Page(self.request)
-
+        page.add_js_files  ( [ "js/common.functions.js" ] )
         for key, value in kwargs.iteritems():
             print "%s = %s" % (key, value)       
             if key == "platformname":
@@ -35,9 +34,6 @@ class PlatformView(TemplateView):
             query_all = network_query,
             checkboxes = False,
             datatables_options = {
-            # for now we turn off sorting on the checkboxes columns this way
-            # this of course should be automatic in hazelnut
-            'aoColumns'      : [None, None, None, None, {'bSortable': False}],
             'iDisplayLength' : 25,
             'bLengthChange'  : True,
             },