[Mpuls-commits] r5931 - in base/trunk/mpulsweb: i18n/de/LC_MESSAGES model

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 17 12:14:40 CEST 2012


Author: bricks
Date: 2012-04-17 12:14:40 +0200 (Tue, 17 Apr 2012)
New Revision: 5931

Modified:
   base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
   base/trunk/mpulsweb/model/document.py
Log:
Order documents list by date DESC and name ASC

Show the newest case documents on top of the list.


Modified: base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
===================================================================
--- base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po	2012-04-17 10:14:10 UTC (rev 5930)
+++ base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po	2012-04-17 10:14:40 UTC (rev 5931)
@@ -3693,7 +3693,7 @@
 #: mpulsweb/templates/documents/case_overview.mako:39
 #: mpulsweb/templates/documents/global_overview.mako:31
 msgid "Inserted at"
-msgstr "Eingefügt"
+msgstr "Hinzugefügt am"
 
 #: mpulsweb/templates/documents/case_overview.mako:42
 #: mpulsweb/templates/documents/global_overview.mako:34

Modified: base/trunk/mpulsweb/model/document.py
===================================================================
--- base/trunk/mpulsweb/model/document.py	2012-04-17 10:14:10 UTC (rev 5930)
+++ base/trunk/mpulsweb/model/document.py	2012-04-17 10:14:40 UTC (rev 5931)
@@ -123,7 +123,7 @@
 LIST_CASE_WITH_DESC = '''
 SELECT id, master_id, groesse, mime, name, datum, beschreibung
 FROM ka_fall_dokumente_tbl_view
-WHERE master_id = %(master_id)s
+WHERE master_id = %(master_id)s ORDER BY datum DESC, name
 '''
 
 LOAD_CASE_WITH_DESC = '''
@@ -148,7 +148,7 @@
 LIST_CASE = '''
 SELECT id, master_id, groesse, mime, name, datum
 FROM ka_fall_dokumente_tbl_view
-WHERE master_id = %(master_id)s
+WHERE master_id = %(master_id)s ORDER BY datum DESC, name
 '''
 
 LOAD_CASE = '''



More information about the Mpuls-commits mailing list