Change filter from glob * to std reg.

develop 2.2.23
Mike Hiretsky 13 years ago
parent 414b5fe459
commit a73c32cfed

@ -610,7 +610,7 @@ storage of variables templates")%location)
reFilter = False reFilter = False
if varsFilter: if varsFilter:
try: try:
reFilter = re.compile("^%s$"%varsFilter) reFilter = re.compile("%s"%varsFilter)
except: except:
cl_overriding.printERROR(_("wrong vars filter '%s'")\ cl_overriding.printERROR(_("wrong vars filter '%s'")\
%str(varsFilter)) %str(varsFilter))

@ -289,7 +289,7 @@ class opt(optparse.OptionParser):
}, },
{'longOption':"filter", {'longOption':"filter",
'optVal':"FILTER", 'optVal':"FILTER",
'help':_("filtered variables (as a regular expression is used *), \ 'help':_("filtered variables by regular expression, \
is used in conjunction with the options '-v --show-variables'") is used in conjunction with the options '-v --show-variables'")
}, },
{'longOption':"xml", {'longOption':"xml",

Loading…
Cancel
Save