Hello Dave,

no this problem appeared on the production environment (Ubuntu 14.04, 
Apache 2 mod_wsgi and now with web2py 2.15.2).
But it is already solved with contains() instead of ==.
It seems a few things changes in version 2.15.2 and some syntaxes are no 
longer supported.
I've had the help of Leonel Camara.

quinta-feira, 3 de Agosto de 2017 às 23:18:14 UTC+1, Dave S escreveu:
>
>
>
> On Thursday, August 3, 2017 at 2:57:45 PM UTC-7, José Leite wrote:
>>
>> I have just updated to web2py 2.15.2 and my site www.holidaysenses.com 
>> became 
>> unstable (unusable).
>>
>> Line codes like:
>> image = db(db.intro_lifestyles.tourism_segment_id == segment.id
>> ).select().first()
>> or
>> image = db(db.intro_regions.region_id == region.id).select().first()
>>
>> where db.intro_lifestyles.tourism_segment_id and 
>> db.intro_regions.region_id are List:references with only one element each 
>> to tables "segment" and "region" respectively raise the following error:
>>
>> File "/home/www-data/web2py/gluon/packages/dal/pydal/helpers/methods.py", 
>> line 95, in bar_encode
>> return '|%s|' % '|'.join(bar_escape(item) for item in items if 
>> str(item).strip())
>> TypeError: 'long' object is not iterable
>>
>> The site was working fine before...
>>
>
>
> From your other posts, you're running on a flavor of Windows and using 
> MSSQL, right?   And using Rocket rather than Apache or IIS?
>
> Can you give us the version information for the  Windows and MSSQL you're 
> using?
>
> Dave
> /dps
>
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to