On 14/05/2012, at 4:14 AM, Andreas Jung <[email protected]> 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 'sort' on 'owners' last login. Why is a nuts idea and not simple. To do this you could create a new index in the zcatalog but to keep it up to date you'd need to reindex that index everytime anyone logged in which would create a lot of writes. Zcatalog is a denormslised query system. You can't do a join. > - -aj > > zjs2k wrote: >> Sorry I didn't make it clear. I want to list and sort contents based >> on their owner's last login time. But I do not want to update the >> content every time its owner login. I worry that it will involve too >> many objects. So my question is where should I put the user last >> login time info so I can easily sort on it? >> >> -- View this message in context: >> http://plone.293351.n2.nabble.com/How-to-search-and-sort-content-based-on-owner-last-login-time-tp7554312p7555083.html >> >> > Sent from the Product Developers mailing list archive at Nabble.com. >> _______________________________________________ Product-Developers >> mailing list [email protected] >> https://lists.plone.org/mailman/listinfo/plone-product-developers > > - -- > ZOPYX Limited | Python | Zope | Plone | MongoDB > Charlottenstr. 37/1 | Consulting & Development > D-72070 Tübingen | Electronic Publishing Solutions > www.zopyx.com | Scalable Web Solutions > - -------------------------------------------------- > Produce & Publish - www.produce-and-publish.com > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJPr/nrAAoJEADcfz7u4AZj908LwOZbmbODOYoQx9hlZZLiJvQR > YCu84ZHv+h35FnMMDQcnQiV+e9xAVTYapNYrxih0nz4xRlqpVZheUf0hwYM5WpiG > HrQVWCxMFAokEsnzlGfjPzdcmmr5v0pVYMB4HrBTj91pCWbU9I/OWhj1b5pV4k23 > KvNM66+f/SYk8hGuP7VVHCHgHwn8qc98au07G+e3iPSrw5xXdgj4Iw0RyjRZhXWw > 1pevV9lt3dDe7cmY7CR9q08EZFd0mU12TYCtO6jupM3nZol7dYNJYgPMH1fFQqog > iLvdnCpKlGxHmSXWJoJF/qddb5md8FUdE+105CDRUC5zbX5nyG/YB1p+87t6UZdO > g1xDc0r4Plxuohadp1VLeMFYoqYWNRE3XU++X893/kOijZCyBVcBtfe7z5SkJ2pR > ci1b82goT/ZwuOhdX+evpWIDeDwv/gE7Ny1HFbrgId6yostqfzDFGH2FWcgS2BTR > Xkqm2HOrK1mrQU1sywTyGC4TXx8mGSU yD > -----END PGP SIGNATURE----- > <lists.vcf> > _______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
