Hi all, Another newbie question - kinda following on from the earlier posts regarding images (although I guess it has more to do with acquisition). Folder Structure / /Images image1 /Folder1 index_html In the index_html in Folder1, how do I show image1 from the Images folder ?? Thanks in advance all ! anu *************************** IMPORTANT NOTE ************************** The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. William M. Mercer Limited is regulated by IMRO and the Personal Investment Authority. Registered in London No. 984275 Registered Office: Telford House, 14 Tothill Street, London SW1H 9NB
Dear list, inside of a python-script I use a function with urllib.urlopen(url) that I call from a dos-box outside of zope with "J:\Zope\ZopeSite\bin\python somescript.py" (on a windowsmachine: win98, zope 2.4.0, python 2.1, zope-install-folder="J:\Zope\ZopeSite\"). The execution of the following function gets an error that I cannot solve: # helper function to read the URL data def readURL(url): """Returns the file found in the URL """ f = urllib.urlopen(url) data = f.read() f.close() return data where url="http://pc-a:8080/0_folderfile_listing" ("0_folderfile_listing" is a dtml-Methode in the root of Zope 2.4.0.) I am logged in as annonymus but changed the security sothat annonymus can do everything under zope. In iexplorer v4.0 I reach http://pc-a:8080/0_folderfile_listing" without a problem and authentifying. But executing the "J:\Zope\ZopeSite\bin\python somescript.py" I get the following errorcode from python:
Retrieving remote files from 'http://pc-a:8080'... Listing remote directory 'http://pc-a:8080/'... Unhandled exception while debugging... Traceback (most recent call last): File "j:\zope\ZopeSite\bin\lib\urllib.py", line 71, in urlopen return _urlopener.open(url) File "j:\zope\ZopeSite\bin\lib\urllib.py", line 176, in open return getattr(self, name)(url) File "j:\zope\ZopeSite\bin\lib\urllib.py", line 283, in open_http h.putrequest('GET', selector) File "j:\zope\ZopeSite\bin\lib\httplib.py", line 432, in putrequest self.send(str) File "j:\zope\ZopeSite\bin\lib\httplib.py", line 374, in send self.connect() File "j:\zope\ZopeSite\bin\lib\httplib.py", line 358, in connect self.sock.connect((self.host, self.port)) File "<string>", line 1, in connect IOError: [Errno socket error] (10065, 'No route to host')
Does anybody has a hint what to do? Many thanks for your replies ... Elena
Another newbie question - kinda following on from the earlier posts regarding images (although I guess it has more to do with acquisition).
Folder Structure
/ /Images image1 /Folder1 index_html
In the index_html in Folder1, how do I show image1 from the Images folder ??
There are two possible ways, first, the "zope-way" <dtml-with Images> <dtml-var image1> </dtml-with> This calls the object image1, and includes the Image-folder when searching it. Second, the html-way: <img src="../Images/image1" alt="foo"> The second one does not user acquisition though. HTH, sebas.
participants (3)
-
Elena Schulz -
Gupta, Anu -
sebas ICK