[Zope] call zope methods from the operating system

Kevin Carlson khcarlso@bellsouth.net
Tue, 2 Jul 2002 18:29:15 -0400


I've been using httplib and urllib to do integration between Zope and
external applications and vice versa.  The performance has been very good
and Deiter is correct -- if you don't want loose coupling, expect lots of
work.

I tried both ways and after much effort, chose httplib /urllib.  If you'd
like any example code let me know.

Kevin

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Dieter Maurer
Sent: Tuesday, July 02, 2002 3:12 PM
To: horst wald
Cc: zope@zope.org
Subject: Re: [Zope] call zope methods from the operating system


horst wald writes:
 > >>can I call Zope
 > >>methods from the operating system (e.g. MySQLDA) without a loopback?
 >
 > >You can with "XML-RPC" or "ZPublisher.Client" or "httplib.HTTP"...
 >
 > I would call httplib or urllib a loopback (if you use it like
 > urllib.urlopen('http://localhost:8080/mymethod?arg=val').read()
 > )
 > But that would be really slow, wouldn't it?
 >
 > Could you give me an example for "XML-RPC" or "ZPublisher.Client" ?
When you call "httplib" or "urllib" loopbacks, then
"XML-RPC" and "ZPublisher.Client" are loopbacks as well
(both use HTTP as transport).

If you do not want this loose coupling, you may need something
like JPE (Java Python Environment) but for your components.

Expect lots of work!


Dieter


_______________________________________________
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 )