<ticket>#381</ticket> <bugfix>HTTP package was not handling exceptions correctly</bugfix>
<ticket>#381</ticket>
<bugfix>HTTP package was not handling exceptions correctly</bugfix>

--
HTTPFile now provides a download(url) function that tries to download a file from url.

packages/HTTP/init.py
 new method download(self, url)
    It doesn't use any of the input/output ports.  For that to work,
    it returns not only the File, but also a result code and the local
    file name. Please look at the documentation for more details on how to use it.
    - The exceptions are now handled correctly.

 compute():
    Refactored download code to download method. It sets output ports and raises
    ModuleError when appropiate.

Please look at the function documentation to know how

VisTrails/VisTrails,Nikea/VisTrails,VisTrails/VisTrails,hjanime/VisTrails,Nikea/VisTrails,Nikea/VisTrails,minesense/VisTrails,celiafish/VisTrails,hjanime/VisTrails,Nikea/VisTrails,VisTrails/VisTrails,celiafish/VisTrails,hjanime/VisTrails,hjanime/VisTrails,VisTrails/VisTrails,minesense/VisTrails,VisTrails/VisTrails,minesense/VisTrails,hjanime/VisTrails,minesense/VisTrails,celiafish/VisTrails,celiafish/VisTrails,minesense/VisTrails