How do I include a file into a DTML box?
Hi! At http://www.iglu.org.il/ we have a front page which contains several left boxes ( a la slashdot). One of them displays the status of the latest Linux kernel version. At the moment it is updated manually but I wrote a script to automatically generate it based on information from www.linuxhq.com. The file with the HTML code is somewhere on the computer's directory structure, and I wish to include it as part of the box (or at least to write a script that will modify it inside zope). How do I do such a thing? TIA, Shlomi Fish ---------------------------------------------------------------------- Shlomi Fish shlomif@vipe.technion.ac.il Home Page: http://t2.technion.ac.il/~shlomif/ Home E-mail: shlomif@techie.com A more experienced programmer does not make less bugs. He just realizes what went wrong more quickly.
Hi Shlomi, Shlomi Fish wrote:
Hi!
At http://www.iglu.org.il/ we have a front page which contains several left boxes ( a la slashdot). One of them displays the status of the latest Linux kernel version.
At the moment it is updated manually but I wrote a script to automatically generate it based on information from www.linuxhq.com.
The file with the HTML code is somewhere on the computer's directory structure, and I wish to include it as part of the box (or at least to write a script that will modify it inside zope).
How do I do such a thing?
Wouldn't it be better to integrate your script with zope so the page is generated on demand from the website (with webclient or httplib?) This can be done via external method or I think so with python-methods too. Regards Tino
On Tue, 3 Apr 2001, Tino Wildenhain wrote:
Hi Shlomi,
Wouldn't it be better to integrate your script with zope so the page is generated on demand from the website (with webclient or httplib?)
This can be done via external method or I think so with python-methods too.
And access http://www.linuxhq.com/ everytime anyone accesses our Front Page. I don't think so. I have a cron job that updates the file, so the load on Linux-HQ is neglible. Regards, Shlomi Fish
Regards Tino
---------------------------------------------------------------------- Shlomi Fish shlomif@vipe.technion.ac.il Home Page: http://t2.technion.ac.il/~shlomif/ Home E-mail: shlomif@techie.com A more experienced programmer does not make less bugs. He just realizes what went wrong more quickly.
Shlomi Fish wrote:
On Tue, 3 Apr 2001, Tino Wildenhain wrote:
Hi Shlomi,
Wouldn't it be better to integrate your script with zope so the page is generated on demand from the website (with webclient or httplib?)
This can be done via external method or I think so with python-methods too.
And access http://www.linuxhq.com/ everytime anyone accesses our Front Page. I don't think so.
You could set a cache on the method, and get the best of both worlds... Michael Bernstein.
Shlomi Fish wrote:
The file with the HTML code is somewhere on the computer's directory structure, and I wish to include it as part of the box (or at least to write a script that will modify it inside zope).
How do I do such a thing?
There's a product called ExtFile on zope.org which I think will sovle your problems. cheers, Chris PS: Upgrade to Squishdot 1.0 too, 0.6.0 is a little on the old side ;-)
participants (4)
-
Chris Withers -
Michael R. Bernstein -
Shlomi Fish -
Tino Wildenhain