Grammalecte  Check-in [ee0cb1670d]

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 on 2019-05-11 10:19:59
Other Links: manifest | tags
Context
2019-05-11
10:48
[server] code cleaning (pylint) check-in: 0c8e86b8c7 user: olr tags: trunk, server
10:19
[core][py][bug] fix displayRules check-in: ee0cb1670d user: olr tags: trunk, core
10:17
[cli] code cleaning (pylint) check-in: d792e0b938 user: olr tags: trunk, cli
Changes

Modified gc_core/py/lang_core/gc_engine.py from [c8f472926f] to [cf7715eca3].

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"