Excuse me for the delay.
Yes, I have tested the new parameter - works fine.



But there is another problem:
In appadmin not all queries use ignore_common_filters=True
I have opened issue 1732 on this topic.




By the way it should be mentioned in the book that the result of a
common_filter function has to be a query and not a boolean

*wrong*:

common_filter = lambda q: db.person.org == session.org *or *session.org==0


*right*:

common_filter = lambda q:* (*db.person.org == session.org*) | (*session.org
==0*)*




2013/9/27 Massimo Di Pierro <massimo.dipie...@gmail.com>

> Just committed to trunk:
>
> SQLFORM.grid(...,ignore_common_filters=True)
>
>  Please check it and let us know if it works as expected. Thanks.
>
>
> On Friday, 27 September 2013 03:15:18 UTC-5, mweissen wrote:
>>
>>
>>
>> Hi,
>> I am using default filters at many places. Now I want to bulid a grid or
>> a smartgrid, but I have to set "ignore_default_filters=True". How can it be
>> done? The parameter"query" seems not be the right way.
>>
>> Regards, Martin
>>
>  --
> 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/groups/opt_out.
>

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

Reply via email to