<br>
<br>
<br>
-----Original Message-----<br>
From: Dieter Maurer &lt;dieter@handshake.de&gt;<br>
To: tonylabarbara@aol.com<br>
Cc: zope@zope.org<br>
Sent: Sun, 22 Jul 2007 1:51 pm<br>
Subject: Re: [Zope] AttributeError: Can't Pin It Down!<br>
<br>


<div id=AOLMsgPart_0_1a5f8993-ce08-4d24-8515-04bd266b2604 style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff"><PRE style="FONT-SIZE: 9pt"><TT><A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote at 2007-7-21 14:27 -0400:
&gt; &gt; ...
&gt; &gt;Error Type: AttributeError
&gt; &gt;Error Value: masterMarketItems
&gt; &gt;
&gt; &gt;
&gt; &gt;This error shows on a page but not in the error log!!
&gt; 
&gt; Maybe, it comes from your error page (i.e. "standard_error_message").
&gt; Then, you should see the entry in the error log that caused
&gt; the error in the first place.<br>
&gt; <br>
&gt; <br>
<br>
<br>
<br>
Nothing in the error log about that :(

&gt; &gt; ...
&gt; &gt;Module Products.PageTemplates.TALES, line 221, in evaluate
&gt; &gt;URL: /example.com/eng/test
&gt; &gt;Line 7, Column 0
&gt; &gt;Expression: &lt;PythonExpr request.contact_us_form.header()&gt;
&gt; &gt; ...
&gt; &gt;Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
&gt; &gt;__traceback_info__: request.contact_us_form.header() 
&gt; &gt;
&gt; &gt;Module Python expression "request.contact_us_form.header()", line 1, in 
&gt; &lt;expression&gt; 
&gt; &gt;
&gt; &gt;Module ZPublisher.HTTPRequest, line 1223, in __getattr__ 
&gt; 
&gt; You did it almost right. You forgot to include the
&gt; "Error Type" and "Error Value" information.<br>
<TABLE><TBODY><TR><TH vAlign=top align=left>Exception Type</TH><TD>AttributeError</TD></TR><TR><TH vAlign=top align=left>Exception Value</TH><TD>header</TD></TR></TBODY></TABLE>
&gt; 
&gt; But, from what you have included, I guess that "request" does
&gt; not have a "contact_us_form" attribute.
<br>
&gt; <br>
Can you explain? I have a Formulator form called "contact_us_form" and it's in the same folder, so there's no problem with inheritance.

&gt; I am unfamiliar with "Formulator" -- but it seems strange to me
&gt; that you expect "request" to contain complete forms.<br>
&gt; <br>
Well, frankly, I built this site a long time ago before PTs were in vogue and it worked just fine using DTML. I changed it to PT for you to throw and capture this error ;)<br>

Since this is happening with all applications and they worked just fine before I took the *zexp snapshots and loaded them into the new server, I was thinking this must come from something below the application level; namely, from a built of Zope itself. I thought maybe I built this from a FBSD port, but no, it's Z 2.7.8 and I built it from source thus:<br>

<div>tar zxvf Zope-2.7.8-final.tgz </div>

<div>cd Zope-2.7.8-final </div>

<div>./configure --with-python=/usr/local/bin/python2.3 --prefix=/usr/local/zope/278 &amp;&amp; make &amp;&amp; make install </div>

<div>/usr/local/zope/278/bin/mkzopeinstance.py </div>

<div>Directory: /usr/local/zope/instance1 </div>

<div>cd /usr/local/zope/instance1 </div>

<div>vi etc/zope.conf </div>

<div>effective-user tony </div>

<div>chown tony var/ </div>

<div>chown tony etc/ </div>

<div>chown tony etc/* </div>

<div>chown tony log/ </div>

<div>chown tony log/*</div>
<br>
This is fine, though, right? Also, I went to zope to find a copy of this tarball and couldn't! Every other tarball is on the list but 2.7.8!!<br>
<A href="http://www.zope.org/Products/Zope/swpackage_releases">http://www.zope.org/Products/Zope/swpackage_releases</A><br>
What's up with that??<br>
TIA,<br>
Tony<br>
</TT></PRE></div>
<!-- end of AOLMsgPart_0_1a5f8993-ce08-4d24-8515-04bd266b2604 --><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone.  Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>