15 Feb
2003
15 Feb
'03
9:38 a.m.
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