Hi all, I have the following situation: server1: Apache ProxyPass -> Zope server2: Apache with PHP -> lots of static and PHP-ized goodies And what I want to have happen is: browser goes to http://server1/mail, which is something like: <dtml-var standard_html_header> <frameset> <frame src="http://server2/twig/"> </frameset> <dtml-var standard_html_footer> This is clearly not the right way to do it, as it does not work (using internal or external name of server2). Is there a right way to do this? KeBasa seems like a possibility for the static stuff, but it seems to my untutored eye like this ought to be more simple than installing another Product. Thanks, -- Jack Coates Monkeynoodle: A Scientific Venture...
hi jack, maybe you can use an External Method like below to fetch the content of a given url. the only magic would be constructing the right url with the right query-string for your php-scripts. something like adding REQUEST['QUERY_STRING'] to the url should work in most cases: import urllib,sys,os def geturl(url): fp=urllib.urlopen(url) content=fp.read() fp.close() return content - maik jablonski On Tue, 02 Apr 2002 21:49:47 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
Hi all,
I have the following situation:
server1: Apache ProxyPass -> Zope
server2: Apache with PHP -> lots of static and PHP-ized goodies
And what I want to have happen is:
browser goes to http://server1/mail, which is something like: <dtml-var standard_html_header> <frameset> <frame src="http://server2/twig/"> </frameset> <dtml-var standard_html_footer>
This is clearly not the right way to do it, as it does not work (using internal or external name of server2).
Is there a right way to do this? KeBasa seems like a possibility for the static stuff, but it seems to my untutored eye like this ought to be more simple than installing another Product.
Thanks, -- Jack Coates Monkeynoodle: A Scientific Venture...
thanks, that sounds workable. I gave it a shot, and the result is kind of odd, though. If I call it with a simple URL, like so: <dtml-var geturl url="http://www.yahoo.com"> then it just produces a reference to itself: http://www.monkeynoodle.org/Methods/geturl how would I run it from the command line to test it? I've tried $ python geturl.py url=http://www.yahoo.com with no luck. Thanks, Jack On Wed, 3 Apr 2002, Maik Jablonski wrote:
hi jack,
maybe you can use an External Method like below to fetch the content of a given url. the only magic would be constructing the right url with the right query-string for your php-scripts. something like adding REQUEST['QUERY_STRING'] to the url should work in most cases:
import urllib,sys,os
def geturl(url): fp=urllib.urlopen(url) content=fp.read() fp.close()
return content
- maik jablonski
On Tue, 02 Apr 2002 21:49:47 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
Hi all,
I have the following situation:
server1: Apache ProxyPass -> Zope
server2: Apache with PHP -> lots of static and PHP-ized goodies
And what I want to have happen is:
browser goes to http://server1/mail, which is something like: <dtml-var standard_html_header> <frameset> <frame src="http://server2/twig/"> </frameset> <dtml-var standard_html_footer>
This is clearly not the right way to do it, as it does not work (using internal or external name of server2).
Is there a right way to do this? KeBasa seems like a possibility for the static stuff, but it seems to my untutored eye like this ought to be more simple than installing another Product.
Thanks, -- Jack Coates Monkeynoodle: A Scientific Venture...
-- Jack Coates Monkeynoodle: A Scientific Venture...
hi, On Wed, 03 Apr 2002 20:07:35 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
thanks, that sounds workable. I gave it a shot, and the result is kind of odd, though. If I call it with a simple URL, like so:
<dtml-var geturl url="http://www.yahoo.com">
try this instead: <dtml-var "geturl('http://www.yahoo.com')"> greetings, maik.
On Wed, 3 Apr 2002, Maik Jablonski wrote:
hi jack,
maybe you can use an External Method like below to fetch the content of a given url. the only magic would be constructing the right url with the right query-string for your php-scripts. something like adding REQUEST['QUERY_STRING'] to the url should work in most cases:
import urllib,sys,os
def geturl(url): fp=urllib.urlopen(url) content=fp.read() fp.close()
return content
- maik jablonski
On Tue, 02 Apr 2002 21:49:47 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
Hi all,
I have the following situation:
server1: Apache ProxyPass -> Zope
server2: Apache with PHP -> lots of static and PHP-ized goodies
And what I want to have happen is:
browser goes to http://server1/mail, which is something like: <dtml-var standard_html_header> <frameset> <frame src="http://server2/twig/"> </frameset> <dtml-var standard_html_footer>
This is clearly not the right way to do it, as it does not work (using internal or external name of server2).
Is there a right way to do this? KeBasa seems like a possibility for the static stuff, but it seems to my untutored eye like this ought to be more simple than installing another Product.
that works, thanks for the syntax help! Jack On Thu, 4 Apr 2002, Maik Jablonski wrote:
hi,
On Wed, 03 Apr 2002 20:07:35 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
thanks, that sounds workable. I gave it a shot, and the result is kind of odd, though. If I call it with a simple URL, like so:
<dtml-var geturl url="http://www.yahoo.com">
try this instead:
<dtml-var "geturl('http://www.yahoo.com')">
greetings, maik.
On Wed, 3 Apr 2002, Maik Jablonski wrote:
hi jack,
maybe you can use an External Method like below to fetch the content of a given url. the only magic would be constructing the right url with the right query-string for your php-scripts. something like adding REQUEST['QUERY_STRING'] to the url should work in most cases:
import urllib,sys,os
def geturl(url): fp=urllib.urlopen(url) content=fp.read() fp.close()
return content
- maik jablonski
On Tue, 02 Apr 2002 21:49:47 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org> wrote:
Hi all,
I have the following situation:
server1: Apache ProxyPass -> Zope
server2: Apache with PHP -> lots of static and PHP-ized goodies
And what I want to have happen is:
browser goes to http://server1/mail, which is something like: <dtml-var standard_html_header> <frameset> <frame src="http://server2/twig/"> </frameset> <dtml-var standard_html_footer>
This is clearly not the right way to do it, as it does not work (using internal or external name of server2).
Is there a right way to do this? KeBasa seems like a possibility for the static stuff, but it seems to my untutored eye like this ought to be more simple than installing another Product.
_______________________________________________ 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 )
-- Jack Coates Monkeynoodle: A Scientific Venture...
On Thursday 04 April 2002 12:07 pm, Jack Coates wrote:
thanks, that sounds workable. I gave it a shot, and the result is kind of odd, though. If I call it with a simple URL, like so:
<dtml-var geturl url="http://www.yahoo.com">
then it just produces a reference to itself: http://www.monkeynoodle.org/Methods/geturl
how would I run it from the command line to test it? I've tried $ python geturl.py url=http://www.yahoo.com with no luck.
Thanks, Jack
KebasData is advertised to do this stuff installing a product is easy, and done only once. give it a try
On Thu, 4 Apr 2002, bak wrote:
On Thursday 04 April 2002 12:07 pm, Jack Coates wrote:
thanks, that sounds workable. I gave it a shot, and the result is kind of odd, though. If I call it with a simple URL, like so:
<dtml-var geturl url="http://www.yahoo.com">
then it just produces a reference to itself: http://www.monkeynoodle.org/Methods/geturl
how would I run it from the command line to test it? I've tried $ python geturl.py url=http://www.yahoo.com with no luck.
Thanks, Jack
KebasData is advertised to do this stuff installing a product is easy, and done only once.
give it a try
The problem is that KebasData only seems to do static pages, which is not so helpful if you want to include a PHP application from another server. -- Jack Coates Monkeynoodle: A Scientific Venture...
KebasData is advertised to do this stuff installing a product is easy, and done only once.
give it a try
The problem is that KebasData only seems to do static pages, which is not so helpful if you want to include a PHP application from another server.
i've an example that puts google search result pages in zope. http://www.zope.org/Members/kedai/useKebasData how did you get the impression that it only works with static page only? just asking so that i can change that, what ever it is :) thanks
On Fri, 5 Apr 2002, bak wrote:
KebasData is advertised to do this stuff installing a product is easy, and done only once.
give it a try
The problem is that KebasData only seems to do static pages, which is not so helpful if you want to include a PHP application from another server.
i've an example that puts google search result pages in zope. http://www.zope.org/Members/kedai/useKebasData
how did you get the impression that it only works with static page only? just asking so that i can change that, what ever it is :)
thanks
The refresh variable and the demos which are all static (even the google results page is still static, if dynamically generated once). I'm trying to wrap a webmail service, which has turned out to be fairly difficult. I've gotten it to work perfectly using a simple frameset in index_html, but this has all the annoyances of framesets and breaks if I try to include any DTML. The ExternalMethod with geturl() works well for grabbing static sites and does allow DTML, but fails with the webmail (TWIG). Just looking at a KebasData addForm, it doesn't look like it will work for webmail; I'll try it for things like webalizer and mrtg though. -- Jack Coates Monkeynoodle: A Scientific Venture...
The refresh variable and the demos which are all static (even the google results page is still static, if dynamically generated once). I'm trying to wrap a webmail service, which has turned out to be fairly difficult.
ok i get it. seems that you need a wrapper, or a product that emulates that check out the zope cgi product http://www.my-zope.org/ProductsRating/20020105032448 or look at amphora light (a zope product) google for it, cant remember the url i think it does run cgi
I've gotten it to work perfectly using a simple frameset in index_html, but this has all the annoyances of framesets and breaks if I try to include any DTML.
The ExternalMethod with geturl() works well for grabbing static sites and does allow DTML, but fails with the webmail (TWIG).
Just looking at a KebasData addForm, it doesn't look like it will work for webmail; I'll try it for things like webalizer and mrtg though.
a wrapper product is much more involved, methinks. hope you find a solution.
participants (3)
-
bak -
Jack Coates -
Maik Jablonski