Commit d1853df7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Specify default columns when getting selection columns.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1205 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee68b186
...@@ -40,18 +40,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -40,18 +40,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<span tal:define="field_errors python: request.get('field_errors',{}); <span tal:define="field_errors python: request.get('field_errors',{});
columns python:here.portal_selections.getSelectionColumns(selection_name, REQUEST=request); form_id request/form_id;
base_form python:getattr(here,form_id);
groups base_form/get_groups;
default_columns python:base_form.get_fields_in_group(groups[0])[0].get_value('columns');
columns python:here.portal_selections.getSelectionColumns(selection_name, REQUEST=request, columns=default_columns);
selected_stats python:here.portal_selections.getSelectionStats(selection_name, REQUEST=request); selected_stats python:here.portal_selections.getSelectionStats(selection_name, REQUEST=request);
dummy python: request.set('here',here); dummy python: request.set('here',here);
global row_index python:0; global row_index python:0;
global row_keys python:['None']; global row_keys python:['None'];
form_id request/form_id;
base_form python:getattr(here,form_id);
groups base_form/get_groups;
global stats python: [' ','count','sum','max','min','avg']; global stats python: [' ','count','sum','max','min','avg'];
all_columns python:base_form.get_fields_in_group(groups[0])[0].get_value('all_columns')"> all_columns python:base_form.get_fields_in_group(groups[0])[0].get_value('all_columns')">
<table class="Border" width="100%"> <table class="Border" width="100%">
<tr><td valign="top"> <tr><td valign="top">
<table> <table>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment