On Tuesday, April 10, 2018 at 6:14:06 PM UTC-4, Yoel Benitez Fonseca wrote:
>
> Is this not working any more ?
>
> >>> q = (db.photo.id == 1)
> >>> db(q.as_dict(flat=True)).select()
> File "", line unknown
> SyntaxError: Operator not supported: eq
>
> That is in a web2py shell,i mean is the same
>
> On Tuesday, April 10, 2018 at 3:14:06 PM UTC-7, Yoel Benitez Fonseca wrote:
>>
>> Is this not working any more ?
>>
>> >>> q = (db.photo.id == 1)
>> >>> db(q.as_dict(flat=True)).select()
>> File "", line unknown
>> SyntaxError: Operator not supported: eq
>>
>> That is in a web2py shell,i mea
On Tuesday, April 10, 2018 at 3:14:06 PM UTC-7, Yoel Benitez Fonseca wrote:
>
> Is this not working any more ?
>
> >>> q = (db.photo.id == 1)
> >>> db(q.as_dict(flat=True)).select()
> File "", line unknown
> SyntaxError: Operator not supported: eq
>
> That is in a web2py shell,i mean is the sam
Is this not working any more ?
>>> q = (db.photo.id == 1)
>>> db(q.as_dict(flat=True)).select()
File "", line unknown
SyntaxError: Operator not supported: eq
That is in a web2py shell,i mean is the same thing passing around the query
in the session as a dict, is not ?
El miércoles, 7 de dicie
thanks!
On Thursday, March 29, 2018 at 5:31:51 PM UTC-7, 黄祥 wrote:
>
> *pls try (not tested)*
> has_membership_admin = 'Admin' in set(auth.user_groups.values() )
> db.table.field.readable = has_membership_admin
> or
> has_membership_admin = 'Admin' in set(auth.user_groups.values() )
> db.table.fi
5 matches
Mail list logo