From def49facd34182305e5d8c1ea273c0992aa90af0 Mon Sep 17 00:00:00 2001 Message-Id: From: =?UTF-8?q?Andr=C3=A9s=20Ambrois?= Date: Fri, 2 Jul 2010 04:10:01 -0300 Subject: [PATCH v2 00/10] Journal sorting by file size and creation time. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new version addresses two problems with the last patchset: Bert Freudenberg kindly reminded me that the 'ctime' property had a documented string format [0], which Etoys was using. This version uses that format so we don't break any activities expecting it. Bernie Innocenti produced a datastore that was unable to successfuly upgrade (reindex) to the new version. The problem was that indexing a document failed miserably when ctime or filesize didn't exist, this version avoids that. This version also contains a new patch that checks for and adds the new metadata when rebuilding the index so that old entries can be sorted. [0] http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Meta_Data Andrés Ambrois (10): Journal: Retrieve filesize from the datastore Add a filesize column to the journal list model Journaltoolbox: Add add_separator method for convenience. Add a ListViewButton to the journal search toolbar. Rename the date column to 'sort_column' Display the sorting property in the last column. Expandedentry: Try to use the filesize property. Implement sorting for removable devices. Add sort by creation time option to the ListViewButton Add ctime property to the journal model. src/jarabe/journal/expandedentry.py | 5 +- src/jarabe/journal/journaltoolbox.py | 86 ++++++++++++++++++++++++++++++++++ src/jarabe/journal/listmodel.py | 29 +++++++++-- src/jarabe/journal/listview.py | 33 +++++++------ src/jarabe/journal/model.py | 22 ++++++-- 5 files changed, 147 insertions(+), 28 deletions(-)