Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2398 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

Dispatcher regression in TG2.1

Reported by: pipoun Owned by:
Priority: normal Milestone: 2.1b1
Component: TurboGears Version: 2.1a1
Severity: normal Keywords:
Cc: percious

Description

I'm experiencing some dispatcher regression in TurboGears 2.1a

I'm well aware of this ticket that have been closed : #2377, but I come from a quickstart install (with TG 2.0) and I'm using paster to launch a webserver

Here is the template html that will call the controller method

<form action="/controller/foo/${param1}/" method="post">
    One param:<input type="text" name="param2" size="3" />
    <br />
    Another one:<input type="text" name="param3" size="3" />
    <br />
    <input type="submit" value="do something" />
</form>

And a chunk of my controller.py code

@expose()
def foo( self, param1, param2, param3 ):
    """nice docstring"""
    redirect('/')

I see that I am mixing parameters in the url and the in POST data. Perhaps the problem comes from that.

In the closed ticket, TG is said to work as advertised. No problem with that, but where is the in-depth documentation ? I've only found this page :  http://www.turbogears.org/2.1/docs/main/Controllers.html#passing-parameters-to-the-controller

Change History

comment:1 Changed 10 years ago by mramm

  • Cc percious added
  • Milestone changed from __unclassified__ to 2.* bugfix

That should work. Can you give us the traceback you are getting?

comment:2 Changed 9 years ago by percious

  • Milestone changed from 2.0.* bugfix to 2.1b1

comment:3 Changed 9 years ago by percious

i verified this is broken.

comment:4 Changed 9 years ago by percious

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.