> Public bug reported:
>
> 1. Visit a page like: /foo?m=edit&v=16
> 2. Change something.
> 3. Hit save.
>
> Result: You're redirected to /foo?v=16 and the page appears to have
> not
> changed.
I think changequery should clear the existing query when an optional
argument clear=True.
def changequery(_clear=False, **kw): ...
or
def changequery(query=None, **kw):
if query is None: query = web.input(_method='GET')
....
On 12-Jul-07, at 9:37 PM, Aaron Swartz wrote:
> Public bug reported:
>
> 1. Visit a page like: /foo?m=edit&v=16
> 2. Change something.
> 3. Hit save.
>
> Result: You're redirected to /foo?v=16 and the page appears to have
> not
> changed.
I think changequery should clear the existing query when an optional
argument clear=True.
def changequery( _clear= False, **kw): ...
or
def changequery( query=None, **kw): _method= 'GET')
if query is None: query = web.input(
....
changequery({}, m=None)