Hello. I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000). Do you now how can I? 1- Put all this files to zope at the same time. (Not one to one) or 2- Do that Zope read directly from the hard disk. I would prefer this option. Thanks.
ruben wrote:
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
For 2 : use an external method in Python that returns an image: def get_external_image(self,filename,REQUEST,RESPONSE): if not os.path.exists(filename): return "" fptr=open(filename, "rb") data=fptr.read() size=len(data) fptr.close() RESPONSE.setHeader("Content-Type", "image/png") RESPONSE.setHeader("Content-Length",size) return data for PNG images -- Hervé Coatanhay
Hi, --On Mittwoch, 8. August 2001 12:42 +0200 Herve Coatanhay <hcoatanhay@virtual-net.fr> wrote:
ruben wrote:
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
For 2 : use an external method in Python that returns an image:
def get_external_image(self,filename,REQUEST,RESPONSE): if not os.path.exists(filename): return ""
fptr=open(filename, "rb") data=fptr.read() size=len(data) fptr.close()
RESPONSE.setHeader("Content-Type", "image/png") RESPONSE.setHeader("Content-Length",size)
return data
for PNG images
Erm... looks like a big memory hoog. I would not recommend this. If its really (really!) nessecary, one could use one of the various extfile products on zope.org. However, importing them to the Zodb seems to be the prefered solution as you can do a lot more with it (like set titles (used for alt-attribute)) ask for width and height and even for existence. Regards Tino
-- Hervé Coatanhay
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
1. ftp them in 2. use LocalFS ----- Original Message ----- From: "ruben" <zope@amutis.com> To: "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 11:37 AM Subject: [Zope] Get files from the disk
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thak you for yours answers. I'm going to try to install de LocalFS, but I don't find it in zope.org. Do you know where can I donwload it? ----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: "ruben" <zope@amutis.com>; "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 1:09 PM Subject: Re: [Zope] Get files from the disk
1. ftp them in 2. use LocalFS
----- Original Message ----- From: "ruben" <zope@amutis.com> To: "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 11:37 AM Subject: [Zope] Get files from the disk
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
http://www.zope.org/Members/jfarr/Products/LocalFS ----- Original Message ----- From: "ruben" <zope@amutis.com> To: "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 12:42 PM Subject: Re: [Zope] Get files from the disk
Thak you for yours answers.
I'm going to try to install de LocalFS, but I don't find it in zope.org. Do you know where can I donwload it?
----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: "ruben" <zope@amutis.com>; "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 1:09 PM Subject: Re: [Zope] Get files from the disk
1. ftp them in 2. use LocalFS
----- Original Message ----- From: "ruben" <zope@amutis.com> To: "Zope" <zope@zope.org> Sent: Wednesday, August 08, 2001 11:37 AM Subject: [Zope] Get files from the disk
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
hi ruben, if you just use FTP or DAV (open as webfolder) there should be no problem to upload the images into zope.
From my experience however in such folders resist a lot of images not anymore referenced by actual pages. So the best option would be to publish the images if you really need them.
Regards Tino --On Mittwoch, 8. August 2001 12:37 +0200 ruben <zope@amutis.com> wrote:
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Ruben, you can ftp them into zope: the default ftp port is 8021, a graphical ftp client should allow you to transfer your files painlessly... cheers, Garry On 8 Aug 2001, at 12:37, ruben wrote: From: "ruben" <zope@amutis.com> To: "Zope" <zope@zope.org> Subject: [Zope] Get files from the disk Date sent: Wed, 8 Aug 2001 12:37:02 +0200
Hello.
I have a new and big problem I'm migrating of IIS to Zope, but now in a directory of de old web I have a lot of images (over 8.000).
Do you now how can I?
1- Put all this files to zope at the same time. (Not one to one)
or
2- Do that Zope read directly from the hard disk. I would prefer this option.
Thanks.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
+-------------------------------------------+ Garry Steedman mailto:gs@styrax.com Styrax Associates http://www.styrax.com/ "The Good Man has no shape." +-------------------------------------------+
participants (5)
-
Garry Steedman -
Herve Coatanhay -
Phil Harris -
ruben -
Tino Wildenhain