[Zope] calling dtmlMethod from python

Shane O'Sullivan shane.osullivan@engitech.ie
Tue, 30 Oct 2001 16:13:42 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C1615D.D81CBF60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can anyone please help with this, I'm new to zope and trying to write a =
simple python script to handle some logic which will then call a dtml =
method. I'm calling the method as such:    context.scReport()
The error I'm getting back is Error Type: KeyError
                                         Error Value: =
standard_html_header
standard_html_header is being called from the scReport method which =
suggests the scReport method is being invoked but why are we getting an =
error?? Any suggestions, TIA
Shaneo

------=_NextPart_000_000F_01C1615D.D81CBF60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Can anyone please help with this, I'm =
new to zope=20
and trying to write a simple python script to handle some =
logic&nbsp;which will=20
then call a dtml method. I'm calling the method as =
such:&nbsp;&nbsp;&nbsp;=20
context.scReport()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The error I'm getting back is =
<STRONG>Error Type:=20
KeyError</STRONG><BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Error=20
Value: standard_html_header</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>standard_html_header is being called =
from the=20
scReport method which suggests the scReport method is being invoked but =
why are=20
we getting an error?? Any suggestions, TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Shaneo</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C1615D.D81CBF60--