16 Aug
2004
16 Aug
'04
7:19 a.m.
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