GUI editor to tame mod_security rules

⌈⌋ ⎇ branch:  modseccfg


Check-in [fc957eeec2]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pass self.vh to ruleinfo.show()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fc957eeec2724e05b6df26534ba23dcba3cd013e1c06634b2901301d7966d2f4
User & Date: mario 2020-11-26 15:31:07
Context
2020-11-27
16:20
Switch from conf["option"] to conf.attribute syntax check-in: d81e063bde user: mario tags: trunk
2020-11-26
15:31
Pass self.vh to ruleinfo.show() check-in: fc957eeec2 user: mario tags: trunk
15:30
Rework styles dict. Add rule state= next to headline. check-in: a03f45c95b user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modseccfg/__init__.py.

1
2
3
4
5
6
7
8
9
10
11
12
13
# encoding: utf-8
# api: python
# type: init
# title: modseccfg
# description: Editor to tame mod_security rulesets
# version: 0.4.0
# state:   prototype
# support: none
# license: ASL
# depends: python:pysimplegui (>= 3.0), python:pluginconf (>= 0.7.3),
#     python:appdirs (>= 1.3), python (>= 3.6), deb:python3-tk, bin:sshfs
# priority: core
# url: https://fossil.include-once.org/modseccfg/





|







1
2
3
4
5
6
7
8
9
10
11
12
13
# encoding: utf-8
# api: python
# type: init
# title: modseccfg
# description: Editor to tame mod_security rulesets
# version: 0.4.1
# state:   prototype
# support: none
# license: ASL
# depends: python:pysimplegui (>= 3.0), python:pluginconf (>= 0.7.3),
#     python:appdirs (>= 1.3), python (>= 3.6), deb:python3-tk, bin:sshfs
# priority: core
# url: https://fossil.include-once.org/modseccfg/

Changes to modseccfg/mainwindow.py.

307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
        editor.editor(data.get("logfn"), readonly=1)

    # secrule details
    @ui.needs_id
    def info(self, data):
        if self.tab == "secrules":
            self.win_register(
                ruleinfo.show(self.id, log_values=self.w["log"].get_list_values)
            )
        else:
            print("No info() for "+self.tab)

    # SecOptions dialog
    @ui.needs_confn
    def secengine_options(self, data):







|







307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
        editor.editor(data.get("logfn"), readonly=1)

    # secrule details
    @ui.needs_id
    def info(self, data):
        if self.tab == "secrules":
            self.win_register(
                ruleinfo.show(self.id, log_values=self.w["log"].get_list_values, vh=self.vh)
            )
        else:
            print("No info() for "+self.tab)

    # SecOptions dialog
    @ui.needs_confn
    def secengine_options(self, data):