22 Mar
2001
22 Mar
'01
9:07 p.m.
hi, Can you create a file from within an external method? (Zope 2.2.4) My method looks like this... def get_url(url): import urllib data = urllib.urlopen(url).read() f = open(r'G:\zope\test.txt' , 'w') f.write(data) f.close() return data It returns a web page fine, when called with <dtml-var expr="test_get_url('http://bible.conman.org/kj/Revelation.13:18')"> but I can't find the file anywhere... thanks tom -- tom smith | tom@othermedia.com http://www.othermedia.com/blog tel 020 8541 5355 | fax 020 8541 5507 11 penrhyn road, kingston-upon-thames, london KT1 2BZ