hi! i have been struggling with a annoying bug, i got a this in a controller:
---
def some_function():
if not request.vars.step:
redirect(URL('some_function', vars=dict(step=1)))
# ----
# a lot of stuff in the middle
# ----
if request.vars.step = '3':
db.person.city = SQLFORM.widgets.autocomplete(request,
db.city.name, id_field=db.city.id)
form = SQLFORM.factory(db.person):
if form.process().accepted:
# do some stuff
pass
# more stuff...
---
The problem is that the autocomplete callback overwrite anything in
request.vars and only left his own parameter _autocomplete_city_name,
is this the intended behavior ? i mean for me it have more sense that
the autocomplete callback add what it need and leave the others things
in place.
--
Msc. Yoel BenÃtez Fonseca
Especialista en TI
http://redevil.cubava.cu/
Tel.: (53 32)284701
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.