[Zope] __getitem__ and returning a PageTemplateFile instance

Dieter Maurer dieter at handshake.de
Sun Oct 16 12:50:09 EDT 2005


Anders Bruun Olsen wrote at 2005-10-14 11:53 +0200:
> ...
>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)). 

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.

-- 
Dieter


More information about the Zope mailing list