Don't require parameters for the ignored args wrapper

This commit is contained in:
mathieui 2017-02-13 19:18:26 +01:00
parent 1cc741c0c1
commit 5e40b63031
2 changed files with 4 additions and 4 deletions

View file

@ -63,7 +63,7 @@ class CommandArgParser(object):
"""
Call the function without any argument
"""
def wrap(self, args, *a, **kw):
def wrap(self, args=None, *a, **kw):
return func(self, *a, **kw)
return wrap

View file

@ -167,7 +167,7 @@ class XMLTab(Tab):
self.refresh()
except Exception as e:
self.core.information('Invalid XML Mask: %s' % e, 'Error')
self.command_filter_reset('')
self.command_filter_reset()
@command_args_parser.raw
def command_filter_to(self, jid):
@ -216,7 +216,7 @@ class XMLTab(Tab):
self.refresh()
except:
self.core.information('Invalid XML Path', 'Error')
self.command_filter_reset('')
self.command_filter_reset()
@command_args_parser.ignored
def command_filter_reset(self):
@ -349,7 +349,7 @@ class XMLTab(Tab):
def on_close(self):
super().on_close()
self.command_clear('')
self.command_clear()
self.core.xml_tab = False
def on_info_win_size_changed(self):