On Saturday, November 29, 2014 9:38:28 PM UTC+7, Anthony wrote: > > When only a single record is selected, in your sale_order_detail_checkout > function, request.vars.ids will just be a single number (represented as a > string) rather than a list. Because strings are iterable, when you iterate > over the string representation of a multi-digit number, you end up getting > each individual digit. In other words, you code is equivalent to: > > for id in '98': > > To fix it, you can change your return line to: > > return dict(ids = ids if isinstance(ids, list) else [ids]) > > Anthony >
it works, thank you so much for detail explaination, Anthony best regards, stifan -- 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.

