oops fix bad function name

This commit is contained in:
Romain Bignon 2010-09-24 13:45:50 -04:00
commit d0730472d8
5 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ class Boobank(ReplApplication):
Make a transfer beetwen two account
"""
id_from, id_to, amount = self.parseline(line, 3, 3)
id_from, id_to, amount = self.parseargs(line, 3, 3)
id_from, backend_name = self.parse_id(id_from)
id_to, backend_name = self.parse_id(id_to)

View file

@ -61,7 +61,7 @@ class Chatoob(ReplApplication):
Send a message to the specified contact.
"""
_id, message = self.parseline(line, 2, 2)
_id, message = self.parseargs(line, 2, 2)
for backend, result in self.do('send_chat_message', _id, message):
if not result:
logging.error(u'Failed to send message to contact id="%s" on backend "%s"' % (_id, backend.name))

View file

@ -48,7 +48,7 @@ class Traveloob(ReplApplication):
List all departures for a given station.
"""
station, arrival = self.parseline(line, 2, 1)
station, arrival = self.parseargs(line, 2, 1)
station_id, backend_name = self.parse_id(station)
if arrival:

View file

@ -47,7 +47,7 @@ class WeboobCfg(ReplApplication):
Add a configured backend.
"""
name, options = self.parseline(line, 2, 1)
name, options = self.parseargs(line, 2, 1)
if options:
options = options.split(' ')
else:

View file

@ -59,7 +59,7 @@ class Weboorrents(ReplApplication):
FILENAME is where to write the file. If FILENAME is '-',
the file is written to stdout.
"""
id, dest = self.parseline(line, 2, 2)
id, dest = self.parseargs(line, 2, 2)
_id, backend_name = self.parse_id(id)