On Saturday, 10 January 2015 12:20:31 UTC, Niphlod wrote:
>
> uhm....but record_versioning adds a common_filter per se, and is usually 
> on the form of is_active == True. Did you try to set a different 
> common_filter ?
>

Yes I tried various, within the table definition and external to it (post 
definition).  I used that one as the simplest example (probably not the 
best).  But even so, all it should do is create a query with the 2 
statements (even though they are the same condition).  Something like 
(WHERE fld == True AND fld == True).  Redundant, sure... but shouldn't 
cause a traceback.  

I looked into the dal.py code where it happens and that line is trying to 
`&` two lambda functions (hence the traceback error message).  From my 
understanding it should be trying to `&` two query objects, not functions.  
I did try converting  to queries, applying the & operator and then 
converting back to function, but that broke something else down line in 
record versioning for reasons I haven't figured out yet.  So no solution 
yet. 

Will post to the bug report if I get it to work.

-- 
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