[Zope] Debugging and Environment Variables

Derek Basch dbasch@yahoo.com
Mon, 31 Mar 2003 08:31:04 -0800 (PST)


> Running Zope this way isn't an area of great
> expertise for me...

This seems to be no ones area of expertise. Did I pick
a weird way to debug or something?

> If this:
> 
> ZPublisher.Zope('')
> 
> returns the "Quick Start" page (or whatever root
> index you defined) then
> you can surmise that the connection to Zope is
> working.  Any other
> problems you encounter probably have something to do
> with your request.

Here is the traceback from my root object request:

>>> ZPublisher.Zope('')
Status: 200 OK
X-Powered-By: Zope (www.zope.org), Python
(www.python.org)
Content-Length: 0

I have tried this on 2 separate Zope installs and both
fail to return the "Zope Quick Start" page. So, it
looks like there is a fundamental flaw in how my
requests are being processed. I can't believe that no
one has ever run into this problem before?
Suggestions?

> You might also find this howto helpful:
>http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend

Thanks for the suggestion but that is the page that
got me started down this highway of confusion!

Thanks for the help,
Derek Basch


--- Dylan Reinhardt <zope@dylanreinhardt.com> wrote:
> On Sun, 2003-03-30 at 14:52, Derek Basch wrote:
> > So, I tried what you suggested:
> > 
> > ZPublisher.Zope('/test/index_html')
> > 
> > and here is the traceback:
> > 
> > <P><STRONG>Resource not found</STRONG></P>
> > Sorry, the requested resource does not
> exist.<p>Check
> > the URL and try again.</p><p><b>Resource:</b>
> > http://127.0.0.1/Zope/test</p>
> 
> Running Zope this way isn't an area of great
> expertise for me... but it
> seems pretty clear that you're asking for something
> that isn't there. Or
> isn't where you're looking for it, anyway.
> 
> I say that because you're getting back a Zope-style
> error message. 
> Throwing up a "not found" error message is correct
> behavior when Zope
> can't find the object you request.
> 
> If this:
> 
> ZPublisher.Zope('')
> 
> returns the "Quick Start" page (or whatever root
> index you defined) then
> you can surmise that the connection to Zope is
> working.  Any other
> problems you encounter probably have something to do
> with your request.
> 
> > 
> > It seems that it is still performing all
> traversals
> > with (http://127.0.0.1/Zope) as the root with no
> port
> > defined. Is this because of how the request is
> > simulated? Suggestions?
> 
> The port is irrelevant, as you're not connecting
> through the web.  It's
> responding *as though* it's running on 80, but there
> isn't actually any
> port involved.
> 
> You might also find this howto helpful:
>
http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend
> 
> HTH,
> 
> Dylan
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com