Commit 3a10ca90 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2007-09-06 yo

* Obtain a listbox with Form_getListbox instead of from a fixed localtion in configure_list_dialog and sort_list_dialog.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16141 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0072645b
...@@ -90,13 +90,14 @@ XXX: uses hardcoded indices values to access fields\n ...@@ -90,13 +90,14 @@ XXX: uses hardcoded indices values to access fields\n
<table tal:define="selection_name request/selection_name;\n <table tal:define="selection_name request/selection_name;\n
base_form python: getattr(here, request[\'form_id\']);\n base_form python: getattr(here, request[\'form_id\']);\n
groups base_form/get_groups;\n groups base_form/get_groups;\n
default_columns python: base_form.get_fields_in_group(groups[0])[0].get_value(\'columns\');\n listbox python: base_form.Form_getListbox();\n
default_columns python: listbox.get_value(\'columns\');\n
columns python: here.portal_selections.getSelectionColumns(selection_name, REQUEST=request, columns=default_columns);\n columns python: here.portal_selections.getSelectionColumns(selection_name, REQUEST=request, columns=default_columns);\n
selected_stats python: here.portal_selections.getSelectionStats(selection_name, REQUEST=request);\n selected_stats python: here.portal_selections.getSelectionStats(selection_name, REQUEST=request);\n
global row_index python: 0;\n global row_index python: 0;\n
global row_keys python: [\'None\'];\n global row_keys python: [\'None\'];\n
global stats python: [\' \',\'count\',\'sum\',\'max\',\'min\',\'avg\'];\n global stats python: [\' \',\'count\',\'sum\',\'max\',\'min\',\'avg\'];\n
all_columns python: base_form.get_fields_in_group(groups[0])[0].get_value(\'all_columns\')">\n all_columns python: listbox.get_value(\'all_columns\')">\n
<tal:block tal:repeat="item columns">\n <tal:block tal:repeat="item columns">\n
<tr tal:define="global row_index python:row_index+1;\n <tr tal:define="global row_index python:row_index+1;\n
dummy python:row_keys.append(item[0])"\n dummy python:row_keys.append(item[0])"\n
......
...@@ -89,7 +89,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -89,7 +89,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
tal:define="items python:here.portal_selections.getSelectionSortOrder(request[\'selection_name\'], REQUEST=request);\n tal:define="items python:here.portal_selections.getSelectionSortOrder(request[\'selection_name\'], REQUEST=request);\n
base_form python:getattr(here,request[\'form_id\']);\n base_form python:getattr(here,request[\'form_id\']);\n
groups base_form/get_groups;\n groups base_form/get_groups;\n
columns python:base_form.get_fields_in_group(groups[0])[0].get_value(\'all_columns\');\n listbox python:base_form.Form_getListbox();\n
columns python:listbox.get_value(\'all_columns\');\n
global row_index python:0;\n global row_index python:0;\n
global row_keys python:[\'None\'];\n global row_keys python:[\'None\'];\n
all_columns python: [(\'None\',\'\')] + columns;">\n all_columns python: [(\'None\',\'\')] + columns;">\n
......
2007-09-06 yo
* Obtain a listbox with Form_getListbox instead of from a fixed localtion in configure_list_dialog and sort_list_dialog.
2007-09-04 Kazuhiko 2007-09-04 Kazuhiko
* use portal_url.getPortalObject().absolute_url_path() instead of portal_url.getPortalPath() for better virtual host support. * use portal_url.getPortalObject().absolute_url_path() instead of portal_url.getPortalPath() for better virtual host support.
......
433 434
\ No newline at end of file \ No newline at end of file
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