[Zope] Can we execute an external method from outside of Zope
Kevin Carlson
khcarlso@bellsouth.net
Wed, 28 May 2003 09:13:51 -0400
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
If I understand you correctly, you want to have some process outside
Zope call this external method in a Zope context. We are doing this
with XML-RPC and cron to kick off certain scripts (both internal and
external) in a Zope context.<br>
<br>
Any method, script, etc, in Zope can be called via XML-RPC. This is
probably the best way to accomplish what you want. Take a look at :<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.zope.org/Members/Amos/XML-RPC">http://www.zope.org/Members/Amos/XML-RPC</a><br>
<br>
Hope that helps,<br>
<br>
Kevin<br>
<br>
<br>
Jean Baltus wrote:<br>
<blockquote type="cite"
cite="mid000901c32429$d7f14c00$010a10ac@museum.africamuseum.be">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;">Hi all,</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">I would like to know if
we can execute an external method from outside of Zope.</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">So let’s say that I have
a script “install.py” and an external method “installer” that refers to
it.</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">Can I execute the
external method “installer” in a python script from outside of zope ?</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">Can I execute the
“install.py” script from outside of Zope but manage to run it as it was
under the same context of the external method?</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">I actually want to create
a script to install a new product and would like the user NOT to create
an external method in order to do this…</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">Thanx for your
suggestions,</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB"
style="font-size: 10pt; font-family: Arial;">-- Jean Baltus</span></font></p>
</div>
</blockquote>
</body>
</html>