summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-07 12:27:26 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-03-07 12:27:26 (GMT)
commit532718ccd0d2ebb4234059e68ffdca50998bb99a (patch)
tree2aef92df43889100708c966cd615952980d17afb
parent7b28bd266133d8bd806a163eb3cb7c6f45f5cd32 (diff)
downloadpfwbged.collection-532718ccd0d2ebb4234059e68ffdca50998bb99a.zip
pfwbged.collection-532718ccd0d2ebb4234059e68ffdca50998bb99a.tar.gz
pfwbged.collection-532718ccd0d2ebb4234059e68ffdca50998bb99a.tar.bz2
do not display type column in folders table
-rw-r--r--src/pfwbged/collection/searchview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pfwbged/collection/searchview.py b/src/pfwbged/collection/searchview.py
index 5d661d8..1d6f694 100644
--- a/src/pfwbged/collection/searchview.py
+++ b/src/pfwbged/collection/searchview.py
@@ -228,7 +228,7 @@ class ResultsFoldersTable(ResultsTable):
extra_column_names = self.request.get('table-extra-columns', '').split(':')
columns = [x for x in columns if not x.__name__.startswith('extra.') or
x.__name__ in extra_column_names]
- blacklist = ['dms.state', 'pfwbged.folder.unfile']
+ blacklist = ['dms.type', 'dms.state', 'pfwbged.folder.unfile']
columns = [x for x in columns if not x.__name__ in blacklist]
return columns
@@ -270,6 +270,7 @@ class AuthorColumn(AuthorColumn):
class TypeColumn(column.Column):
+ grok.name('dms.type')
grok.adapts(Interface, Interface, ResultsTable)
header = PMF(u"Type")
weight = 10