Commit Graph

10 Commits

Author SHA1 Message Date
Chris PeBenito
8e082f70cf Replace license text in sources with SPDX license indentifiers.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-11-20 14:12:15 -05:00
Chris PeBenito
16c069631e
Merge pull request #57 from pebenito/apol-tab-metaclass
TabRegistry: Add a new metaclass for generating the tab selection.
2021-01-20 15:33:20 -05:00
Chris PeBenito
d3687c7705 TabRegistry: Add a new metaclass for generating the tab selection.
The ChooseAnalysis dialog lists the analysis tabs so the user can select
them.  Create a new metaclass so the listing of tabs, grouping in the menu,
and the invocation of the tab's class is automatic.  This requires section,
tab_title, and mlsonly class attributes.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-01-20 15:27:38 -05:00
Chris PeBenito
bb5986724e apol: Suppress RuntimeErrors in analysis tab destructors.
Suppress errors like this:

Exception ignored in: <function DomainTransitionAnalysisTab.__del__ at 0x7fcb4e93c1f0>
Traceback (most recent call last):
  File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 54, in __del__
    self.thread.quit()
RuntimeError: wrapped C/C++ object of type ResultsUpdater has been deleted
Exception ignored in: <function ResultsUpdater.__del__ at 0x7fcb4e943550>
Traceback (most recent call last):
  File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 449, in __del__
    self.wait()
RuntimeError: wrapped C/C++ object of type ResultsUpdater has been deleted
Exception ignored in: <function BrowserUpdater.__del__ at 0x7fcb4e943820>
Traceback (most recent call last):
  File "/home/pebenito/projects/setools/setoolsgui/apol/dta.py", line 538, in __del__
    self.wait()
RuntimeError: wrapped C/C++ object of type BrowserUpdater has been deleted

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-01-20 14:27:59 -05:00
Chris PeBenito
6d7a672611 Update static testing and fix identified issues.
* Change pep8 to new pycodestyle tool.
* Load the policrep extension in pylint
2018-08-11 20:46:06 -04:00
Chris PeBenito
42c2bbd606 Move data in as package data.
Closes #136.
2016-11-12 11:13:21 -05:00
Chris PeBenito
693b5a435b Implement an enumeration for default rule type, value, and range value. 2016-09-03 16:44:13 -04:00
Chris PeBenito
c4556ae85f apol: Implement analysis tab base class.
Add methods for clearing and setting UI error states.  Disable apply button
if there are errors in the tab.
2016-07-09 12:35:11 -04:00
Chris PeBenito
e12ff2e94f DefaultQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-17 14:07:00 -04:00
Chris PeBenito
d09bfdd09b apol: implement default query tab
Closes #121
2016-04-14 10:03:34 -04:00