[Zope] Re: urllib.urlopen

Wolfram Kraus kraus at hagen-partner.de
Mon Aug 16 03:19:54 EDT 2004


Heyho!

David Siedband wrote:
> I'm trying to grab a data file using urllib.urlopen
> 
> with this code:
> 
> def powerData(self,REQUEST):
>    import csv
>    import urllib
>    inFile =  
> urllib.urlopen('http://www.davisenergy.com/zeh_data/A042304.DAT')
> 
> return inFile
   ^^^^Your indention is wrong, the return statement should be inside 
the powerData-function.

> 
> Ideas on what's not working?  thanks
> 
> -- 
> David
> 
HTH,
Wolfram



More information about the Zope mailing list