aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-01-14 20:30:57 +0000
committerDavid Reyna <David.Reyna@windriver.com>2019-01-14 21:57:39 -0800
commit24f2a07d2febee776650cd09a977d57dbea3261c (patch)
tree0b55c57e38251513edd9876404ffb9b06c220793
parent4fa9ddfd21030d5d3f952913ebdd4a64b0e1c9ba (diff)
downloadsrtool-24f2a07d2febee776650cd09a977d57dbea3261c.tar.gz
srtool-24f2a07d2febee776650cd09a977d57dbea3261c.tar.bz2
srtool-24f2a07d2febee776650cd09a977d57dbea3261c.zip
pylint srtgui
-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)