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 at > http://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.

