On 1/12/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
>
> OK, so the question is: is it possible to use the same method to both
> show input form and process data? If yes, how'd I do it correctly?

In addition to what Karl said, I should note that there has been
discussion on the CherryPy list about ways to conveniently deal with
GET and POST separately. You might want to speak up on cherrypy-users
if that's something appealing to you.

The idea is something along these lines:

@turbogears.expose()
def somemethod_GET(self...):
    ...display the form

@turbogears.expose()
def somemethod_POST(self...):
    ...accept the data

So, you have two methods but one URL. With a setup like this, we can
comfortably do what you want.

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to