[Zope] External Method - "context" arg
Tom Sheffler
sheffler@rambus.com
Wed, 14 Feb 2001 17:34:27 -0800
This is a multi-part message in MIME format.
------=_NextPart_000_012A_01C096AC.61538A20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The Zope book chapter "Advanced Zope Scripting" shows a method with
an arg list like this:
def makeThumbnail(context, original_id, size=3D128):
=20
When I create a method with the "context" arg, Zope complains
that the parameter "context" was omitted from the request.
THE REAL QUESTION:::
Using a Python Method, it's easy to get the variables
"context" and "travers_subpath." How do I get these two
values when using an External Method.
Thanks for any assistance.
Tom
------=_NextPart_000_012A_01C096AC.61538A20
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.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2>The Zope book chapter "Advanced Zope =
Scripting"=20
shows a method with</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>an arg list like this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2> def =
makeThumbnail(context,=20
original_id,=20
size=3D128):<BR> &nb=
sp; =20
</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>When I create a method with the =
"context" arg,=20
Zope complains</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>that the parameter "context" was =
omitted from the=20
request.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2>THE REAL QUESTION:::</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2>Using a Python Method, it's easy to =
get the=20
variables</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>"context" and =
"travers_subpath." How=20
do I get these two</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>values when using an External=20
Method.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2>Thanks for any =
assistance.</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>Tom</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_012A_01C096AC.61538A20--