[Mpuls-commits] r3542 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Sep 7 11:31:39 CEST 2010
Author: torsten
Date: 2010-09-07 11:31:39 +0200 (Tue, 07 Sep 2010)
New Revision: 3542
Modified:
base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (Field): Added new config var "overview_length"
Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py 2010-09-07 09:29:36 UTC (rev 3541)
+++ base/trunk/mpulsweb/model/case.py 2010-09-07 09:31:39 UTC (rev 3542)
@@ -208,6 +208,9 @@
overview_style -- Defines a css style for the fields in the overview
(default table_name)
+ overview_length -- Defines the maximum length of the displayed field.
+ Field will be shortend after set number of chars (default 15)
+
search_retrieve -- If true (default false), the field will be
returned from a search. This only works if the name is a
column of the master table.
@@ -248,7 +251,8 @@
session=False, preload=False,
alias=None, alias_force_string=True,
overview=False, overview_label=None,
- overview_style="table_name"):
+ overview_style="table_name",
+ overview_length=15):
self.name = name
self.digest = digest
@@ -265,6 +269,7 @@
self.overview = overview
self.overview_label = overview_label or name
self.overview_style = overview_style
+ self.overview_length = overview_length
def __repr__(self):
return "Field(%r)" % (self.name,)
More information about the Mpuls-commits
mailing list