Changeset 3403 for WAeUP_SRP/base/skins/waeup_upload
- Timestamp:
- 1 Apr 2008, 16:01:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_upload/uploads_index.py
r3332 r3403 88 88 if getattr(doc,'import_date',''): 89 89 row['import_date'] = doc.import_date.strftime("%d/%m/%y %H:%M:%S") 90 row['import_date_for_sort'] = doc.import_date.strftime("%y/%m/%d %H:%M:%S") 90 91 else: 91 92 row['import_date'] = '' … … 99 100 row['import_layout'] = doc.import_layout 100 101 row['uploaded_by'] = doc.uploaded_by 102 row['upload_date_for_sort'] = doc.upload_date.strftime("%y/%m/%d %H:%M:%S") 101 103 row['upload_date'] = doc.upload_date.strftime("%d/%m/%y %H:%M:%S") 102 104 row['imported_by'] = doc.imported_by 103 105 add_to.append(row) 104 wrong.sort(cmp,key=lambda d:d['upload_date '],reverse=1)105 importable.sort(cmp,key=lambda d:d['upload_date '],reverse=1)106 imported.sort(cmp,key=lambda d:d['import_date '],reverse=1)106 wrong.sort(cmp,key=lambda d:d['upload_date_for_sort'],reverse=1) 107 importable.sort(cmp,key=lambda d:d['upload_date_for_sort'],reverse=1) 108 imported.sort(cmp,key=lambda d:d['import_date_for_sort'],reverse=1) 107 109 info['wrong'] = wrong 108 110 info['imported'] = imported
Note: See TracChangeset for help on using the changeset viewer.