Commit Graph

13 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
3b845c01c2 SEToolsTableModel: Fix type checking error.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2020-10-17 16:27:53 -04:00
Chris PeBenito
17a20a596a PermListModel: Fix bug in creating permission set intersection.
ObjClass.perms is now a frozenset, so it can't be updated.
2018-11-16 10:14:39 -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
2b4d69d42e Revise structure to make policyrep a module instead of a subpackage.
The setools.policyrep.exception module merged into setools.exception.
2018-08-11 20:46:01 -04:00
Chris PeBenito
576268eeca Use the suppress context manager where possible to improve readability. 2017-09-17 09:43:13 -04:00
Chris PeBenito
da8a238ffc apol: Fix model headers so extra columns aren't added.
The section number (column header) is -1 when the section is hidden. The
defaultdict use would cause extra columns to be created since the column
count is based on the size of the headers object and -1 would add a new
entry.  Change headers to lists.
2016-06-08 07:26:32 -04:00
Chris PeBenito
6cce18f779 SEToolsListModel: Add append and remove functions. 2016-05-11 08:44:55 -04:00
Chris PeBenito
61613cf3f4 apol: adjust models to handle invalid indices in data().
Infrequently data() is called with an invalid index and then apol crashes.
2016-04-21 10:07:12 -04:00
Chris PeBenito
1370cfd20f apol: further simplify Table model subclasses 2016-04-01 14:50:25 -04:00
Chris PeBenito
f1f9c3186d Create new base class for table models.
Break up rule models into three files since RuleListModel doesn't make
sense any longer.
2016-04-01 09:00:17 -04:00
Chris PeBenito
f5cace1420 setoolsgui: revise model implementations
Use defaultdicts for headers.  Simplify data member functions.
2016-03-29 09:12:05 -04:00
Chris PeBenito
fcabb2f0e6 Move generic GUI classes up to the setoolsgui package. 2016-03-14 15:25:07 -04:00