[Zope] read() method

Dmitry Matveev Dmitry Matveev <matveev@uralfirm.ru>
Mon, 9 Dec 2002 14:12:40 +0500


Hello!
For my way of solution the problem, i have to use  the
same code in PythonScript, not in External Method:

import urllib
params = urllib.urlencode({’spam’ : 1, ’eggs’ : 2,  ’bacon’: 0})
f = urllib.urlopen( "http://www.musi-cal.com/")
print f.read()


I can allow the urllib module in  /Products/GlobalScripts/__init__.py

The problem is how allow the read() method from socket._fileobject
class in my PythonScript???

M.b. there is another way to get the  page's html-code from any
server?

  

-- 
Best regards,                          www.uralfirm.ru
Dmitry Matveev                         mailto:matveev@uralfirm.ru