Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but you don't know what you are doing. You retrieve the last_login time *once* and pass the value to a date range query. That's it - nothing more, nothing less. - -aj zjs2k wrote: Sorry I didn't make it clear. I want to list and sort contents

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Ricardo Newbery
Lots of ways to skin this cat. You can just store login times as user metadata but if this is a very busy site, with many login events, I would lean toward keeping the login times updated in an external key/value store to avoid ZODB bloat. In either case, just sort your catalog results by

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread zjs2k
I probably don't know what I am doing. I still got a lot to learn. But I think I see what is the confusing part here. I am not trying to login and see new content since my last login time. Instead, I want to see all the contents created by other users, and the contents are sorted based those

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread zjs2k
Thanks for the code. It will do exactly what I want. But I also have the performance concern if I have to sort thousands or more items. Maybe I should just iterate through the ordered users and do multiple catalog searches on Creator index. Use ajax on the page to delay display so I probably won't

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Laurence Rowe
Andreas, This list is aimed at assisting product developers whatever their level of experience. Please keep your answers constructive! Laurence ajung wrote -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but you don't know what you are doing. You retrieve the last_login time *once*

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Dylan Jay
On 14/05/2012, at 4:14 AM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but you don't know what you are doing. You retrieve the last_login time *once* and pass the value to a date range query. That's it - nothing more, nothing less. He wants to

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Laurence Rowe
Dylan Jay wrote On 14/05/2012, at 4:14 AM, Andreas Jung lt;lists@gt; wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but you don't know what you are doing. You retrieve the last_login time *once* and pass the value to a date range query. That's it - nothing more, nothing

Re: [Product-Developers] How to search and sort content based on owner last login time?

2012-05-13 Thread Dylan Jay
On 14/05/2012, at 10:25 AM, Laurence Rowe wrote: Dylan Jay wrote On 14/05/2012, at 4:14 AM, Andreas Jung lt;lists@gt; wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but you don't know what you are doing. You retrieve the last_login time *once* and pass the value to a date