[Zope] Forwarding problem

Chris Withers chrisw@nipltd.com
Sat, 15 Feb 2003 09:38:52 +0000


Kevin Carlson wrote:
> I have a dtml-document that displays some information given a database 
> key as an argument in the request.

Yuck! At the very least that should be a DTML method. But DTML's horrible 
calling arguments are probably tripping you up to. I'd move to ZPT...

>   request = container.REQUEST
>   if len(traverse_subpath) > 0 :
>     request.set('id', traverse_subpath[0])
> 
>   return context['document'](container, request)

Try context.document(None,_)

(you'll need to bind _ to the namespace on the bindings tab)

Of course, if document was a ZPT, it's just be:

context.document()

...and work ;-)

cheers,

Chris