23 Sep
2002
23 Sep
'02
12:08 a.m.
Colin Fox wrote:
Help! I have a python script, which calls a dtml-method, which invokes a zpt.
[...]
container.sendreport(None, context.REQUEST, args)
Can't guarantee that this is right, or will fix your problem, but I think you are calling the dtml-method incorrectly. Try: container.sendreport(context, context.REQUEST, args) If I recall correctly, the first positional argument must be the 'client' object (context). If that's right, passing in 'None' instead would seem likely to lead to KeyErrors as the None object doesn't have a 'sendreport' attribute. hth, tim