remove accepts a list

This commit is contained in:
David Rose 2008-11-13 06:17:16 +00:00
parent be57287bef
commit 450f5f3bf6
1 changed files with 3 additions and 0 deletions

View File

@ -396,6 +396,9 @@ class TaskManager:
return self.mgr.remove(tasks)
elif isinstance(taskOrName, AsyncTask):
return self.mgr.remove(taskOrName)
elif isinstance(taskOrName, types.ListType):
for task in taskOrName:
self.remove(task)
else:
self.notify.error('remove takes a string or a Task')