[Zope] __getitem__ and returning a PageTemplateFile instance

Anders Bruun Olsen anders at bruun-olsen.net
Sun Oct 16 18:59:07 EDT 2005


On Sun, Oct 16, 2005 at 06:50:09PM +0200, Dieter Maurer wrote:
> >I am trying to make a product where-in I want to be able to return a
> >page based on the url, think something like /product/username
> >which would return a page with the users details.
> >For this purpose I am using __getitem__, but when I return a
> >PageTemplateFile instance it just tells me it has encountered a problem
> >publishing the object.
> I such a case, you look at the traceback (which you can find in
> the "error_log" object in your Zope "Root Folder" (ZMI)). 

It just says "No exceptions logged." So it does not log any errors in
error_log. 
The error message I am getting is:

Site Error

An error was encountered while publishing this resource.

Debugging Notice
Zope has encountered a problem publishing your object.

Cannot locate object at: http://localhost:8080/vitester/asonhe 

> If it does not solve the problem directly, you include
> the full error information (at least "Error Type", "Error Value"
> *AND* "traceback") in your post.

If there had been a better error description I would of course have
included it, but the thing that has made this difficult to understand is
that I haven't been able to find any real error messages. I have enabled
debug-mode and am running Zope in the foreground, but it reports no
errors at all.

-- 
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0xD4DEFED0


More information about the Zope mailing list