[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C
On Saturday, 10 January 2015 13:15:48 UTC, Paolo Valleri wrote:

 Hi, 
 I've fixed the error but I've to understand if all common_filters are 
 applied correctly. 
 Do you mind to test  https://github.com/ilvalle/web2py/tree/issue-2023 ?


Ok, will add some more common filters and get onto testing it asap.

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


Re: [web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Paolo Valleri
I created a PR https://github.com/web2py/web2py/pull/585

 Paolo

2015-01-10 17:31 GMT+01:00 Jose C houdinihoun...@gmail.com:


 Do you mind to test  https://github.com/ilvalle/web2py/tree/issue-2023 ?


 Ok Paolo, it all appears to work as expected now with trunk (2.9.12 beta)
 -  at least with my current system and setup.  I also backported your
 change to my dev version (2.9.5) and it too works.

 Many thanks for fixing this bug so quickly.

  --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/mohm6Nb8Mfc/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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


[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C



 Do you mind to test  https://github.com/ilvalle/web2py/tree/issue-2023 ?


Ok Paolo, it all appears to work as expected now with trunk (2.9.12 beta) 
-  at least with my current system and setup.  I also backported your 
change to my dev version (2.9.5) and it too works.

Many thanks for fixing this bug so quickly.

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


[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Niphlod
uhmbut 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 
?

On Saturday, January 10, 2015 at 8:58:21 AM UTC+1, Jose C wrote:

 Bug reported:

 https://code.google.com/p/web2py/issues/detail?id=2032can=4




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


[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C
On Saturday, 10 January 2015 12:20:31 UTC, Niphlod wrote:

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


[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Paolo Valleri
Hi, 
I've fixed the error but I've to understand if all common_filters are 
applied correctly. 
Do you mind to test  https://github.com/ilvalle/web2py/tree/issue-2023 ?

Paolo

On Saturday, January 10, 2015 at 2:01:56 PM UTC+1, Jose C wrote:

 On Saturday, 10 January 2015 12:20:31 UTC, Niphlod wrote:

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


[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-09 Thread Jose C
Bug reported:

https://code.google.com/p/web2py/issues/detail?id=2032can=4


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