well, the line it is tripping up on is:
s = socket(AF_INET,SOCK_DGRAM)
I'm not at all familiar with this netgrowl thing. I think if you change
socket() to socket.socket() you wil lbe good to go, assuming the rest of the
code is correct. What the error says is that you have effectively
done "import socket; socket()" which of course won't work since you cannot
call a module. You need to call the socket function (actually, it is a class,
but either way, it is a callable) within the socket module.
Another thing you could do is just do "import netgrowl" and call the netgrowl
specific stuff by name in your function. This would avoid any other potential
namespace collision issues, I think. If there is a socket function within
netgrowl that you were intending to use instead of socket.socket, this would
be the better solution.
> > Also, is there any way to "test fire" the postDownloadFunction, so I
> > don't have to wait for a download to test it?
As for test firing your function, just make a regex that will hit something in
the current feed.
--
lostnihilist