pulling from another website
is there an easy way within Zope to pull data straight from a given URL and serve is in the context of the DTML document or ZPT file? so when a user browses a particular page on my site, Zope plays reverse proxy to obtain the information from another site, then displays it as if it were local. sounds like plagiarism but it won't be. it's related to my question of how to let users publish frequently changing files. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc this site has moved. we'd tell you where, but then we'd have to delete you.
On Mon, Mar 17, 2003 at 06:46:49PM +0100, martin f krafft wrote:
is there an easy way within Zope to pull data straight from a given URL and serve is in the context of the DTML document or ZPT file? so when a user browses a particular page on my site, Zope plays reverse proxy to obtain the information from another site, then displays it as if it were local.
http://www.zope.org/Members/ajung/HTTPMounter might do it, if a LocalFS-type solution is what you need. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
also sprach Mike Renfro <renfro@tntech.edu> [2003.03.17.1855 +0100]:
http://www.zope.org/Members/ajung/HTTPMounter might do it, if a LocalFS-type solution is what you need.
unfortunately, this won't cut it. i don't want to serve a remote file, i want to include the remote contents in a file that i serve locally. sorry for not having been quite clear. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc *** important disclaimer: by sending an email to any address, that will eventually cause it to end up in my inbox without much interaction, you are agreeing that: - i am by definition, "the intended recipient" - all information in the email is mine to do with as i see fit and make such financial profit, political mileage, or good joke as it lends itself to. in particular, i may quote it on usenet. - i may take the contents as representing the views of your company. - this overrides any disclaimer or statement of confidentiality that may be included on your message.
hi martin a little python program (on the filesystem) that uses urllib2 is probably what you want to do. i see a python product or or an external method showing up in your life very soon ;-) take care gidon martin f krafft wrote:
also sprach Mike Renfro <renfro@tntech.edu> [2003.03.17.1855 +0100]:
http://www.zope.org/Members/ajung/HTTPMounter might do it, if a LocalFS-type solution is what you need.
unfortunately, this won't cut it. i don't want to serve a remote file, i want to include the remote contents in a file that i serve locally. sorry for not having been quite clear.
On Mon, Mar 17, 2003 at 06:46:49PM +0100, martin f krafft wrote:
is there an easy way within Zope to pull data straight from a given URL and serve is in the context of the DTML document or ZPT file?
You might look at KebasData. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's GARBAGE MAN BUSTER! (random hero from isometric.spaceninja.com)
check out this: http://www.zope.org/Members/lstaffor/ZClientMethod HTH Rick martin f krafft wrote:
is there an easy way within Zope to pull data straight from a given URL and serve is in the context of the DTML document or ZPT file? so when a user browses a particular page on my site, Zope plays reverse proxy to obtain the information from another site, then displays it as if it were local. sounds like plagiarism but it won't be. it's related to my question of how to let users publish frequently changing files.
also sprach Gidon Friedman <tempnospam1@friedman.ch> [2003.03.17.1955 +0100]:
as an alternative: do it the otherway round. you useres store files in your ZODB with WebDAV. with unix-based clients (what i expect in your case) that works cool.
as said... there's a problem with passwords. either the users are going to scream as they have to enter the password every time they change the file, or they'll store it in a local config, thereby compromising security.
but i don't quite understand why you don't use LocalFS, it should be possible one way or the other.
does zope 2.5 do LocalFS? the main reason i don't do it is because i'd prefer to stay with Debian, and Debian does not have it included AFAICT. also sprach Paul Winkler <pw_lists@slinkp.com> [2003.03.17.1910 +0100]:
You might look at KebasData.
cool. this is pretty much exactly what i was looking for. ... but...
this makes for much better integration with DTML and ZPT scripts. thanks, the problem is solved, I am using ZClientMethod. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc "alas, i am dying beyond my means." -- oscar wilde
On Mon, Mar 17, 2003 at 08:37:43PM +0100, martin f krafft wrote:
also sprach Gidon Friedman <tempnospam1@friedman.ch> [2003.03.17.1955 +0100]:
but i don't quite understand why you don't use LocalFS, it should be possible one way or the other.
does zope 2.5 do LocalFS? the main reason i don't do it is because i'd prefer to stay with Debian, and Debian does not have it included AFAICT.
I'm probably as big a Debian proponent as you'll find around here, and my original Zope installs on Debian date back to August 1999. That having been said: Debian doesn't package LocalFS, that's true, but it doesn't need to. Unpack it somewhere (use /usr/local/zope/LocalFS if you want to keep everything separate), and symlink it into /usr/lib/zope/lib/python/Products as needed. Debian won't stop you from running LocalFS, and LocalFS won't stop you from running Debian. I installed it sometime around a year and a half ago, and it worked fine then. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
also sprach Mike Renfro <renfro@tntech.edu> [2003.03.18.0147 +0100]:
Debian doesn't package LocalFS, that's true, but it doesn't need to. Unpack it somewhere (use /usr/local/zope/LocalFS if you want to keep everything separate), and symlink it into /usr/lib/zope/lib/python/Products as needed.
I am doing this. Still, it needs write-access to /usr, which I absolutely detest. Debian's philosophy and strength stems from the fact that only dpkg may write to /usr.
Debian won't stop you from running LocalFS, and LocalFS won't stop you from running Debian. I installed it sometime around a year and a half ago, and it worked fine then.
i will have a look at LocalFS. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html get my key here: http://madduck.net/me/gpg/publickey "all unser übel kommt daher, daß wir nicht allein sein können." -- schopenhauer
On Tue, Mar 18, 2003 at 10:36:14PM +0100, martin f krafft wrote: | also sprach Mike Renfro <renfro@tntech.edu> [2003.03.18.0147 +0100]: | > Debian doesn't package LocalFS, that's true, but it doesn't need | > to. Unpack it somewhere (use /usr/local/zope/LocalFS if you want to | > keep everything separate), and symlink it into | > /usr/lib/zope/lib/python/Products as needed. | | I am doing this. Still, it needs write-access to /usr, which | I absolutely detest. Debian's philosophy and strength stems from the | fact that only dpkg may write to /usr. No, just put it in /var/lib/zope/Products. That's what /var is for :-). (I don't have LocalFS, but I do have a couple other products there) -D -- The wise in heart are called discerning, and pleasant words promote instruction. Proverbs 16:21 http://dman.ddts.net/~dman/
also sprach Derrick 'dman' Hudson <dman@dman.ddts.net> [2003.03.21.0943 +0100]:
No, just put it in /var/lib/zope/Products. That's what /var is for :-).
good point. well, having Zope read a second directory in /usr/local would be really handy and allow for nicer separation. whatever, good to see you here, mr. dman... -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html get my key here: http://madduck.net/me/gpg/publickey in what language do people recite at a play and play at a recital?
On Tuesday 18 March 2003 01:46, martin f krafft wrote:
is there an easy way within Zope to pull data straight from a given URL and serve is in the context of the DTML document or ZPT file? so when a user browses a particular page on my site, Zope plays reverse proxy to obtain the information from another site, then displays it as if it were local. sounds like plagiarism but it won't be. it's related to my question of how to let users publish frequently changing files.
you might want to try http://www.zope.org/Members/kedai/KebasData hth
participants (7)
-
Bakhtiar A Hamid -
D. Rick Anderson -
Derrick 'dman' Hudson -
Gidon Friedman -
martin f krafft -
Mike Renfro -
Paul Winkler