niphlod/cs_monitor_plugin — pull request #8 by ilvalle (2014-05-01 08:18:31+00:00)
Title: Fix type error when stop a task

With postgres as backend, I got this ticket
```
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 220, in restricted
exec ccode in environment
File "/home/www-data/web2py.git/applications/vtraffic/controllers/plugin_cs_monitor.py", line 631, in
File "/home/www-data/web2py/gluon/globals.py", line 385, in
self._caller = lambda f: f()
File "/home/www-data/web2py/gluon/tools.py", line 3287, in f
return action(*a, **b)
File "/home/www-data/web2py.git/applications/vtraffic/controllers/plugin_cs_monitor.py", line 288, in edit_task
rtn = s.stop_task(task.id)
File "/home/www-data/web2py/gluon/scheduler.py", line 1069, in stop_task
"You can retrieve results only by id or uuid")
SyntaxError: You can retrieve results only by id or uuid
```
This PR fixes the issue.
Moreover, is there a way to restart a task after it has been stopped ?