[ZPT] Re: Basic File Upload Question

Evan Simpson evan@4-am.com
Wed, 25 Sep 2002 10:50:08 -0500


John Westenberg wrote:
 > I'm new to zope and ZPT and I need help with a very basic issue.  I'm
 > having a hard time finding examples in any of Zope's documentation.
 > I have a form that uploads a tab delimited text datafile which I want
 > to display in an html table.  I have the form call an External method
 > which accepts self and REQUEST as parameters:

 > I keep getting 'unkown global name context' or 'container when I try
 > either method.

That's because "context" and "container" are ZPT variables, and External 
Methods are another animal entirely.  You may have better luck on the 
general zope mailing list with this sort of question.  I can tell you 
that the "self" argument is equivalent to ZPT's "context", though.

Cheers,

Evan @ 4-am