And now, I'm not really sure that I understood you :)
But if I got it correctly, I have to make a dummy form somewhere, call
it from the exposed method in the controller (redirect to that page?),
then the form will be submitted and that way I got the post.
There must be an other way. Something provided by the tg architecture?

On Aug 10, 12:44 am, Alessandro Molina <[email protected]>
wrote:
> I don't know if I understood what you want to do.
> But if you need to POST data instead of performing a GET you need to
> put the data inside a form with a bunch of hidden inputs.
> Then you can assign the onlick of whatever link you want to the
> form.submit sending the parameters by POST.
>
>
>
>
>
>
>
> On Tue, Aug 9, 2011 at 9:59 PM, David Borsodi <[email protected]> wrote:
> > Hello
>
> > I'd like to ask that how can I send the data given in an exposed
> > controller method as a 'post'.
> > E.g. if I have this:
> >    @expose('mutdb.templates.renewpassword_1')
> >    def renewpassword_1(self, **kw):
> >        return dict(page='rewnewpassword_1', state=kw.get('state',
> > 'pre'))
>
> > I get the following url after execution, what looks like an HTTP GET:
> >http://localhost:8080/renewpassword_1?state=pre
> > which is sometimes unacceptable (eg in case of returning an sql
> > resultset) and usually not elegant.
>
> > So, is there any way to post the dictionary ?
>
> > thanks
> > david
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "TurboGears" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/turbogears?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to