[Mpuls-commits] r1804 - in wasko/branches/2.0: . jmdweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 16:27:19 CET 2010


Author: bh
Date: 2010-02-25 16:27:18 +0100 (Thu, 25 Feb 2010)
New Revision: 1804

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako
Log:
* jmdweb/templates/casemanagement/caselist.mako (fields): Handle
empty first or last names of a case's editor.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-25 15:26:39 UTC (rev 1803)
+++ wasko/branches/2.0/ChangeLog	2010-02-25 15:27:18 UTC (rev 1804)
@@ -1,5 +1,10 @@
 2010-02-25  Bernhard Herzog  <bh at intevation.de>
 
+	* jmdweb/templates/casemanagement/caselist.mako (fields): Handle
+	empty first or last names of a case's editor.
+
+2010-02-25  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/lib/search.py (Search.queryDB): Port the exception
 	handler removal from jmdweb to waskaweb.
 

Modified: wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako	2010-02-25 15:26:39 UTC (rev 1803)
+++ wasko/branches/2.0/jmdweb/templates/casemanagement/caselist.mako	2010-02-25 15:27:18 UTC (rev 1804)
@@ -38,8 +38,8 @@
 
     (_('cm_overview_tbl_header_editor'), "bearbeiter_id", "table_name",
      ["admin"],
-     lambda case: "%s, %s" % (case.getEditor().last_name,
-                              case.getEditor().first_name[0])),
+     lambda case: "%s, %s" % (F.NA(case.getEditor().last_name),
+                              F.NA(case.getEditor().first_name[:1]))),
 
     (_('cm_overview_tbl_header_accesstime'), "zugriff", "table_name", ["cm"],
      lambda case: h.format_date(case.state.getAccessTime())),



More information about the Mpuls-commits mailing list