aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/srtgui/tables.py11
-rw-r--r--lib/srtgui/widgets.py4
2 files changed, 5 insertions, 10 deletions
diff --git a/lib/srtgui/tables.py b/lib/srtgui/tables.py
index 0535a7a1..09446fae 100644
--- a/lib/srtgui/tables.py
+++ b/lib/srtgui/tables.py
@@ -317,8 +317,8 @@ class SelectCveTable(ToasterTable):
context['components'] = Defect.Components
return context
- def apply_row_customization(self, data):
- data = super(SelectCveTable, self).apply_row_customization(data)
+ def apply_row_customization(self, row):
+ data = super(SelectCveTable, self).apply_row_customization(row)
# data:dict_keys(['rows', 'total', 'default_orderby', 'error', 'columns'])
# comments_private -> recommend_list
@@ -804,6 +804,7 @@ class CweCvesTable(CvesTable):
def __init__(self, *args, **kwargs):
super(CweCvesTable, self).__init__(*args, **kwargs)
self.default_orderby = "name"
+ self.cwe = None
def get_context_data(self, **kwargs):
cwe_name = self.request.GET.get('cwe_name','')
@@ -1869,12 +1870,6 @@ class UpdatePublishedTable(ToasterTable):
orderable=True,
)
- if False:
- self.add_column(title="Note",
- field_name="note",
- hideable=False,
- )
-
class NotificationsTable(ToasterTable):
"""Table of Notifications in SRTool"""
diff --git a/lib/srtgui/widgets.py b/lib/srtgui/widgets.py
index b491a1c4..9415a7a5 100644
--- a/lib/srtgui/widgets.py
+++ b/lib/srtgui/widgets.py
@@ -72,8 +72,8 @@ class ToasterTable(TemplateView):
# prevent HTTP caching of table data
@cache_control(must_revalidate=True,
max_age=0, no_store=True, no_cache=True)
- def dispatch(self, *args, **kwargs):
- return super(ToasterTable, self).dispatch(*args, **kwargs)
+ def dispatch(self, request, *args, **kwargs):
+ return super(ToasterTable, self).dispatch(request, *args, **kwargs)
def get_context_data(self, **kwargs):
context = super(ToasterTable, self).get_context_data(**kwargs)