changeset 351:402214f6607c

CollectLists: flagged not to use transpose with filter_pattern. removing of a column isn't implemented yet.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 03 Feb 2009 19:17:56 +0100
parents 2eda7e0194e5
children 2b139cd6c4d7
files data/plugin/macro/CollectLists.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/CollectLists.py	Tue Feb 03 19:09:37 2009 +0100
+++ b/data/plugin/macro/CollectLists.py	Tue Feb 03 19:17:56 2009 +0100
@@ -36,6 +36,7 @@
 
     """
     currently we don't support transpose together with filter_selection
+    removing columns by filter_pattern and transpose is not implemented yet
     """
     request = macro.request
     formatter = macro.formatter
@@ -77,7 +78,7 @@
     data = TupleDataset()
     data.columns = []
     data.columns.extend([Column(pagename.strip('/'), label=pagename.strip('/'), align=align)])
-
+    # may be transpose should be moved into the databrowser widget
     if transpose:
         data.addRow([pagename.strip('/')] + column_heading_keys)
 
@@ -103,7 +104,8 @@
         link = page.link_to(request, text="/%s" % child)
         tmp_string = ''.join(tmp_string)
         search_result = re.search(filter_pattern, tmp_string)
-        if tmp_string and search_result:
+        # ToDo removing columns by filter_pattern and transpose is not implemented yet
+        if tmp_string and search_result or transpose:
             data.addRow([link] + row)
         if transpose:
             data.columns.extend([Column(link, label=link, align=align)])