Grammalecte  Check-in [ee0cb1670d]

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

Overview
Comment:[core][py][bug] fix displayRules
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256:ee0cb1670de2a4289097b4750d275a613dd397236c7a33a8460fe3531235a515
User & Date: olr 2019-05-11 10:19:59
Context
2019-05-11
10:48
[server] code cleaning (pylint) check-in: 0c8e86b8c7 user: olr tags: server, trunk
10:19
[core][py][bug] fix displayRules check-in: ee0cb1670d user: olr tags: core, trunk
10:17
[cli] code cleaning (pylint) check-in: d792e0b938 user: olr tags: cli, trunk
Changes

Changes to gc_core/py/lang_core/gc_engine.py.

138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
                if not sFilter or zFilter.search(sRuleId):
                    yield (sOption, sLineId, sRuleId)


def displayRules (sFilter=None):
    "display the name of rules, with the filter <sFilter>"
    echo("List of rules. Filter: << " + str(sFilter) + " >>")
    for sOption, sLineId, sRuleId in listRegexRules(sFilter):
        echo("{:<10} {:<10} {}".format(sOption, sLineId, sRuleId))


#### Options

def setOption (sOpt, bVal):
    "set option <sOpt> with <bVal> if it exists"







|







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
                if not sFilter or zFilter.search(sRuleId):
                    yield (sOption, sLineId, sRuleId)


def displayRules (sFilter=None):
    "display the name of rules, with the filter <sFilter>"
    echo("List of rules. Filter: << " + str(sFilter) + " >>")
    for sOption, sLineId, sRuleId in listRules(sFilter):
        echo("{:<10} {:<10} {}".format(sOption, sLineId, sRuleId))


#### Options

def setOption (sOpt, bVal):
    "set option <sOpt> with <bVal> if it exists"