<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h3
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=IT link=blue vlink=purple>

<div class=Section1>

<div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Pier Paolo [mailto:pierpaolo.franco@francodrwalter.191.it] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, April 08, 2005 2:47
PM<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">zope@zope.org</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [newbie] Testing An
External Method Object</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Hi everyone! Great work, I&#8217;m overadmired.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I just finished <a
href="http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObject.stx">http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObject.stx</a>,
where I posed a question:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>========================================================<o:p></o:p></span></font></p>

<pre><font size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>Anonymous User - Apr. 8, 2005 7:48 am:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> Zope 2.7.5-final:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> My external method was:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> #def animals_script_2(self, name=&quot;Pier Paolo&quot;):<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id = self.id<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 'Ciao! Sono %s dal %s: external method!' % (name, id)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> but (in this structure: /zoo/animals_scripts_2 (titles: Zope Zoo, TheANIMall 2)) it returned:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;&nbsp; </span>Ciao! Sono Pier Paolo dal (...OK) zoo (...!): external method!<o:p></o:p></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font><span
lang=EN-GB>I tried a title = self.title in the ext script but the problem was the same:<o:p></o:p></span></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;&nbsp; </span>Ciao! Sono Pier Paolo dal Zope Zoo<o:p></o:p></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font><span
lang=EN-GB>... So: Why my external script refer to his parent object??<o:p></o:p></span></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt'> (sorry for my english and my python.)<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>=========================================================<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I would like a response, or some links to learn how
zope manage dependencies (if that&#8217;s the real problem, and I haven&#8217;t
made too much mistakes).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>PS: I don&#8217;t know if this is the right place to
post a question on the Zope Book, hope so.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Thanks, Pier Paolo.<o:p></o:p></span></font></p>

</div>

</body>

</html>