Hi everybody, it's now my third day with Zope and I'm already pretty happy with it. Finally I got external python methods running with passing parameters to them and getting return values back. Although there is a lot of documentation, I couldn't find any about the Zope internals. Does anybody know where to look for such documentation? Now my question concerns local files. We do image processing and have zillions of images. I'd like to do some "have a page of thumbsnails and click on it to see the full image" kind of web page. I saw the examle thumbnail code in http://www.zope.org/Members/michel/ZB/ScriptingZope.html, but that code puts the thumbnails into the Zope Database within the python script. I'd like to avoid that, because with our zillion images this would bloat the database pretty much. If I got the docs right, it's normally not possible to publish a local file with Zope, only objects in the database can be published (correct?). But I would like to use a href like <A HREF="http://mymachine/images/0000.pgm"> <IMG SRC="http://mymachine/images/thumbs/0000.pgm"></A> in the dtml. If I understand it right, the product "Local File System" would be a possibility to do that. Is it the right way to go, or does anybody have a better / other solution? Tanks for any help! BTW: I read about dropping external python modules in some future version of Zope. For us, the main point with Zope is, that you can build a web front end for a bunch of python modules we have. Thus, from our point of view, the dtml-binding possibility to python modules is essential. Tilo
Hi!
documentation, I couldn't find any about the Zope internals. Does anybody know where to look for such documentation?
a) The code itself is quite well-documented ;-) b) There are documents on zope.org on how the ZODB works and on programming Database Adapters; I guess there is even more, but well-hidden ;-) c) Always try the zdp.zope.org (Zope Documentation Project) site for more stuff
script. I'd like to avoid that, because with our zillion images this would bloat the database pretty much.
in the dtml. If I understand it right, the product "Local File System" would be a possibility to do that. Is it the right way to go, or does anybody have a better / other solution?
There is a product called ExtFile/ExtImage that does exactly what you need. But you could also build your own solution very easily, e.g. using Apache (or the new Tux webserver for extra performance ...) to serve the images and just manage the upload via Zope/LocalFS.
BTW: I read about dropping external python modules in some future version of Zope. For us, the main point with Zope is, that you can build a web front end for a bunch of python modules we have. Thus, from our point of view, the dtml-binding possibility to python modules is essential.
There is a tendency towards making more stuff available over the web (e.g. "replacing" External Methods by web-manageable "python scripts". This might make External (Python) Methods more or less unnecessary (BTW: Most of them could just be uploaded to Zope/the ZODB). But the full-fledged Python Products (or modules) you put into the Products folder will definitely not go away soon. That's how most of the major Zope applications are developed. Cheers, Joachim iuveno AG Smart Communication
Hello tilo There is a product that will allow you to serve files from the file system. Look under external access in download area. With this you can serve your local files without adding to zodb sathya ----- Original Message ----- From: <tilo.schwarz@daimlerchrysler.com> To: <zope@zope.org> Sent: Thursday, January 11, 2001 4:18 AM Subject: [Zope] href on a local file
Hi everybody,
it's now my third day with Zope and I'm already pretty happy with it. Finally I got external python methods running with passing parameters to them and getting return values back. Although there is a lot of documentation, I couldn't find any about the Zope internals. Does anybody know where to look for such documentation?
Now my question concerns local files. We do image processing and have zillions of images. I'd like to do some "have a page of thumbsnails and click on it to see the full image" kind of web page. I saw the examle thumbnail code in http://www.zope.org/Members/michel/ZB/ScriptingZope.html, but that code puts the thumbnails into the Zope Database within the python script. I'd like to avoid that, because with our zillion images this would bloat the database pretty much.
If I got the docs right, it's normally not possible to publish a local file with Zope, only objects in the database can be published (correct?). But I would like to use a href like
<A HREF="http://mymachine/images/0000.pgm"> <IMG SRC="http://mymachine/images/thumbs/0000.pgm"></A>
in the dtml. If I understand it right, the product "Local File System" would be a possibility to do that. Is it the right way to go, or does anybody have a better / other solution?
Tanks for any help!
BTW: I read about dropping external python modules in some future version of Zope. For us, the main point with Zope is, that you can build a web front end for a bunch of python modules we have. Thus, from our point of view, the dtml-binding possibility to python modules is essential.
Tilo
_______________________________________________ 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 )
participants (3)
-
Joachim Werner -
sathya rangaswamy -
tilo.schwarzï¼ daimlerchrysler.com