[Zope] python script returning DTMLMethod problem

DA Loeffler David.Loeffler@bristol.ac.uk
Wed, 7 Aug 2002 16:24:31 +0100 (BST)


On Wed, 7 Aug 2002, Tom Germaine wrote:

> Even if the script:
> return context.showUploadRequests()
> 
>  calling a simple DTML method:
> <dtml-var standard_html_header>
> <dtml-var REQUEST>
> <dtml-var standard_html_footer>
> 
> fails with error:
> Error Type: KeyError
> Error Value: standard_html_header
> 


This one should work as
return context.showUploadRequests(context)

Certainly I have written lots of Python scripts which include the line
print context.standard_html_header(context)

David