[Zope] getting at vars from <form>'s in external methods
Alexander Staubo
alex@mop.no
Thu, 17 Jun 1999 20:26:16 +0200
Try adding REQUEST as a parameter to your method. Through this variable
you should be able to get at your form data, thus:
def MyMethod(REQUEST):
Name = REQUEST.name
Age = REQUEST.age
...
--
Alexander Staubo http://www.mop.no/~alex/
"`Ford, you're turning into a penguin. Stop it.'"
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
>-----Original Message-----
>From: rmilner@dev.tivoli.com [mailto:rmilner@dev.tivoli.com]
>Sent: 17. juni 1999 20:07
>To: zope@zope.org
>Subject: [Zope] getting at vars from <form>'s in external methods
>
>
>
> I'm sure this is obvious - but I can't find it anywhere. How can
>my external method get the value of a variable set from a <form>
>submit?
>
> Thanks,
> ^Roman
>
>
>
>--
>If Happy Fun Ball begins to smoke, get away immediately. Seek shelter
>and cover head.
>---------------------------------------------------------------------
>Roman Milner rmilner@dev.tivoli.com
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>