Please open a ticket pointing this thread. We can add support for this.

On Thursday, 31 October 2013 15:11:59 UTC-5, David Manns wrote:
>
> My case too was passing a list of values from a reference field.
>
> On Wednesday, October 30, 2013 9:59:29 PM UTC-4, Massimo Di Pierro wrote:
>>
>> Belongs on GAE has always been supported. The cited code in version 2.7.4 
>> is
>>
>> def BELONGS(self,first,second=None):
>>         if not isinstance(second,(list, tuple)):
>>             raise SyntaxError("Not supported")
>>         ...
>>
>> So perhaps you are passing something to belongs which is not a list or 
>> tuple. It is possible that in the past we did not check.
>>
>> On Wednesday, 30 October 2013 13:28:05 UTC-5, Scott Hunter wrote:
>>>
>>> This doesn't sound very "backwards compatible" to me; I couldn't find 
>>> any documentation that says belongs DOESN'T work in GAE, and it clearly 
>>> used to (if imperfectly).
>>>
>>> So is the bug that it USED to work, or that it doesn't work now?
>>>
>>> On Wednesday, October 30, 2013 11:53:04 AM UTC-4, David Manns wrote:
>>>>
>>>> 'Belongs' was the problem. Older versions of web2py supported a limited 
>>>> implementation of belongs (up to 30 items in the set) on GAE datastore. 
>>>> Current version does not support 'belongs' on GAE datastore. I have worked 
>>>> around this and now have my application working again. Thanks Scott and 
>>>> Massimo.
>>>>
>>>> On Wednesday, October 30, 2013 7:39:54 AM UTC-4, David Manns wrote:
>>>>>
>>>>> Scott is probably right - I will do some experiments to check. Earlier 
>>>>> versions of web2py supported 'belongs' on GAE so long as the set 
>>>>> contained 
>>>>> 30 or fewer members (by experiment, not documented). I can see how this 
>>>>> limited support may have been dropped in a DAL rewrite!
>>>>>
>>>>> On Tuesday, October 29, 2013 9:49:35 PM UTC-4, Scott Hunter wrote:
>>>>>>
>>>>>> Don't know if this helps, but I see that the query for affl uses 
>>>>>> belongs, and I'm seeing the following in my GAE log for a query that 
>>>>>> uses 
>>>>>> belongs:
>>>>>>
>>>>>>   File 
>>>>>>> "/Users/shunter/Dropbox/webdev/google_app_engine/mypptrials/gluon/dal.py",
>>>>>>>  
>>>>>>> line 4802, in BELONGS
>>>>>>>     raise SyntaxError("Not supported")
>>>>>>
>>>>>>
>>>>>> I also see the same thing in your log.
>>>>>>
>>>>>

-- 
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/groups/opt_out.

Reply via email to