[Zope] urllib.urlopen

Travis Miller travis at ctln.org
Mon Aug 16 09:10:59 EDT 2004


here, you've defined inFile within the scope of powerData, but then you 
are using inFile outside the scope of powerData. indention matters.

   http://docs.python.org/tut/node6.html (4.6 Defining Functions)

thanks,
travis


On Aug 15, 2004, at 5:33 PM, David Siedband wrote:

> def powerData(self,REQUEST):
>    import csv
>    import urllib
>    inFile = 
> urllib.urlopen('http://www.davisenergy.com/zeh_data/A042304.DAT')
>
> return inFile



More information about the Zope mailing list