Re: [Zope] Wrapping a non-Zope site in Zope
At 12:10 PM 9/3/2004 +0200, Chris Withers wrote:
Etienne Labuschagne wrote:
What is the best way to "wrap" another live site in a Zope page or serve it through Zope.
Generally, stitch together using Apache and rewrite rules...
I have a web-enabled mail site that I must plug into a client's Plone site. The client wants his employees to first log into their Plone portal before being able to log into their web enabled mail site. He might also want all of this to happen behind https in the end. So an employee will have to do two logins to get to his/her mail.
That sucks ;-) I'd use something like CAS for single-sign-on...
I thought that too. Somehow the client feels it is more "secure" when the poor user must log in twice - sigh.
The second phase will incorporate the mail site into the Plone skin, by stripping the <head> section from the mail server served pages and then plugging the body into the body slot of the Plone skin.
niiice... rather you than me ;-)
Thanks, I feel much more confident now :(
I'd suggest just changing hte HTML of your mail software so it looks like Plone... much more efficient and robust.
My idea was for Zope to "pass on" the mail server served pages, somewhat like a reverse proxy. Maybe a reverse proxy is the answer, but how do I get the client to first log into the Plone portal before being able to
log into the mail page.
Have the mail server appear in a path within Plone's auth realm...
I have started writing a "proxy" object in Zope that takes the browser request, figures out which page to retrieve from the mail server with urllib, retrieve the page, and pass that back again, but it is a bit slow.
That will be an unending and tortuous path of pain and suffering for you ;-)
Ahh, then let's no go there, shall we? Thanks for the advice, will now go on my merry way to find enlightenment on "Have the mail server appear in a path within Plone's auth realm..." and other tidbits. Etienne
cheers,
Chris
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Tue, Mar 09, 2004 at 12:39:32PM +0200, Etienne Labuschagne wrote:
Chris Withers wrote: ...
The second phase will incorporate the mail site into the Plone skin, by stripping the <head> section from the mail server served pages and then plugging the body into the body slot of the Plone skin.
niiice... rather you than me ;-)
Thanks, I feel much more confident now :(
Actually I don't expect this part to be hard as long as you don't want to do extensive munging of the body section. Google for KebasData. I've done a similar thing with a CMFDefault-based site that needed to include a single page of content from e.g. a Notes/Domino server. But I only needed a single page, so this was expedient.
I'd suggest just changing hte HTML of your mail software so it looks like Plone... much more efficient and robust.
me too, actually :-)
I have started writing a "proxy" object in Zope that takes the browser request, figures out which page to retrieve from the mail server with urllib, retrieve the page, and pass that back again, but it is a bit slow.
That will be an unending and tortuous path of pain and suffering for you ;-)
Ahh, then let's no go there, shall we?
Yes, let's not :-) Where I work, we have some zope sites that are integrated with jboss sites via a custom java proxy. It does rewriting of URLs in the proxied content, too. I cannot begin to estimate the time and effort sunk into this solution. I don't think it would be any fun to implement something similar in python. -- Paul Winkler http://www.slinkp.com
Paul Winkler wrote:
Where I work, we have some zope sites that are integrated with jboss sites via a custom java proxy. It does rewriting of URLs in the proxied content, too. I cannot begin to estimate the time and effort sunk into this solution. I don't think it would be any fun to implement something similar in python.
Maybe they should have started with uPortal's CWebProxy code? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Etienne Labuschagne wrote:
Thanks for the advice, will now go on my merry way to find enlightenment on "Have the mail server appear in a path within Plone's auth realm..." and other tidbits.
Apache, rewrite rules and proxying are your friends... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Etienne Labuschagne -
Paul Winkler