<br>
<br>
<br>
-----Original Message-----<br>
From: Dieter Maurer <dieter@handshake.de><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:
> > ...
> >Error Type: AttributeError
> >Error Value: masterMarketItems
> >
> >
> >This error shows on a page but not in the error log!!
>
> Maybe, it comes from your error page (i.e. "standard_error_message").
> Then, you should see the entry in the error log that caused
> the error in the first place.<br>
> <br>
> <br>
<br>
<br>
<br>
Nothing in the error log about that :(
> > ...
> >Module Products.PageTemplates.TALES, line 221, in evaluate
> >URL: /example.com/eng/test
> >Line 7, Column 0
> >Expression: <PythonExpr request.contact_us_form.header()>
> > ...
> >Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
> >__traceback_info__: request.contact_us_form.header()
> >
> >Module Python expression "request.contact_us_form.header()", line 1, in
> <expression>
> >
> >Module ZPublisher.HTTPRequest, line 1223, in __getattr__
>
> You did it almost right. You forgot to include the
> "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>
>
> But, from what you have included, I guess that "request" does
> not have a "contact_us_form" attribute.
<br>
> <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.
> I am unfamiliar with "Formulator" -- but it seems strange to me
> that you expect "request" to contain complete forms.<br>
> <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 && make && 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>