Commit 91214ab6 authored by Sebastien Robin's avatar Sebastien Robin

used get_groups(include_empty=1) instead of just get_groups


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@518 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8aabe258
...@@ -46,7 +46,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -46,7 +46,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
global row_keys python:['None']; global row_keys python:['None'];
form_id request/form_id; form_id request/form_id;
base_form python:getattr(here,form_id); base_form python:getattr(here,form_id);
groups base_form/get_groups; groups python: base_form.get_groups(include_empty=1);
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">
......
...@@ -117,13 +117,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -117,13 +117,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5" <td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/></td> border="0" alt="img"/></td>
<td align="left" <td align="left"
tal:define="cancel_url request/cancel_url | request/HTTP_REFERER"> tal:define="cancel_url request/cancel_url | request/HTTP_REFERER;
previous_form_id request/previous_form_id | nothing">
<img src="/images/pro/images/spacer.png" width="5" height="5" <img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/> border="0" alt="img"/>
<input type="hidden" name="dialog_method" value="cancel_url" <input type="hidden" name="dialog_method" value="cancel_url"
tal:attributes="value python: form.action"/> tal:attributes="value python: form.action"/>
<input type="hidden" name="cancel_url" value="cancel_url" <input type="hidden" name="cancel_url" value="cancel_url"
tal:attributes="value cancel_url"> tal:attributes="value cancel_url">
<input type="hidden" name="previous_form_id" value="previous_form_id"
tal:attributes="value previous_form_id">
<input type="Submit" value="Cancel" name="base_cancel:method" <input type="Submit" value="Cancel" name="base_cancel:method"
/>&nbsp; />&nbsp;
<input type="Submit" value="Search" <input type="Submit" value="Search"
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Search"> <div class="Search">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table width="100%"> <table width="100%">
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Search"> <div class="Search">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table class="Border" width="100%"> <table class="Border" width="100%">
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Search"> <div class="Search">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Main"> <div class="Main">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Search"> <div class="Search">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table class="Border" width="100%"> <table class="Border" width="100%">
......
...@@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<span tal:define="gettext python:here.gettext; <span tal:define="gettext python:here.gettext;
groups form/get_groups; groups python: form.get_groups(include_empty=1);
sort_on python:here.portal_selections.getSelectionSortOrder(selection_name, REQUEST=request); sort_on python:here.portal_selections.getSelectionSortOrder(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;
......
...@@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<span tal:define="gettext python:here.gettext; <span tal:define="gettext python:here.gettext;
groups form/get_groups; groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table class="Border" width="100%" tal:condition="python:len(form.get_fields_in_group(groups[0])) > 0 <table class="Border" width="100%" tal:condition="python:len(form.get_fields_in_group(groups[0])) > 0
......
...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="Search"> <div class="Search">
<span tal:define="groups form/get_groups; <span tal:define="groups python: form.get_groups(include_empty=1);
field_errors python: request.get('field_errors',{}); field_errors python: request.get('field_errors',{});
dummy python: request.set('here',here)"> dummy python: request.set('here',here)">
<table class="Border" width="100%"> <table class="Border" width="100%">
......
...@@ -117,13 +117,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -117,13 +117,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5" <td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/></td> border="0" alt="img"/></td>
<td align="left" <td align="left"
tal:define="cancel_url request/cancel_url | request/HTTP_REFERER"> tal:define="cancel_url request/cancel_url | request/HTTP_REFERER;
previous_form_id request/previous_form_id | nothing">
<img src="/images/pro/images/spacer.png" width="5" height="5" <img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/> border="0" alt="img"/>
<input type="hidden" name="dialog_method" value="cancel_url" <input type="hidden" name="dialog_method" value="cancel_url"
tal:attributes="value python: form.action"/> tal:attributes="value python: form.action"/>
<input type="hidden" name="cancel_url" value="cancel_url" <input type="hidden" name="cancel_url" value="cancel_url"
tal:attributes="value cancel_url"> tal:attributes="value cancel_url">
<input type="hidden" name="previous_form_id" value="previous_form_id"
tal:attributes="value previous_form_id">
<input type="Submit" value="Cancel" name="base_cancel:method" <input type="Submit" value="Cancel" name="base_cancel:method"
/>&nbsp; />&nbsp;
<input type="Submit" value="Search" <input type="Submit" value="Search"
......
...@@ -118,13 +118,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -118,13 +118,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5" <td width="5"><img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/></td> border="0" alt="img"/></td>
<td align="left" <td align="left"
tal:define="cancel_url request/cancel_url | request/HTTP_REFERER"> tal:define="cancel_url request/cancel_url | request/HTTP_REFERER;
previous_form_id request/previous_form_id | nothing">
<img src="/images/pro/images/spacer.png" width="5" height="5" <img src="/images/pro/images/spacer.png" width="5" height="5"
border="0" alt="img"/> border="0" alt="img"/>
<input type="hidden" name="dialog_method" value="cancel_url" <input type="hidden" name="dialog_method" value="cancel_url"
tal:attributes="value python: form.action"/> tal:attributes="value python: form.action"/>
<input type="hidden" name="cancel_url" value="cancel_url" <input type="hidden" name="cancel_url" value="cancel_url"
tal:attributes="value cancel_url"> tal:attributes="value cancel_url">
<input type="hidden" name="previous_form_id" value="previous_form_id"
tal:attributes="value previous_form_id">
<input type="Submit" value="Cancel" name="base_cancel:method" <input type="Submit" value="Cancel" name="base_cancel:method"
/>&nbsp; />&nbsp;
<input type="Submit" value="Search" <input type="Submit" value="Search"
......
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