Commit ca4ffe66 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Removed per portal type filtering (yet keep compatibility with existing...

Removed per portal type filtering (yet keep compatibility with existing methods). Added a cache key so that filter expression results can be cached (ex. per portal_type). The general idea is that nearly nobody uses portal type filtering and that increasing the number of SQL methods tends to decrease performance.  By caching expression results, the impact of additional SQL methods is less significant. 
In addition, code syntax has been improved here and there (spaces, tabs). Some comments were added. Hardcoded values removed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b78cae4d
This diff is collapsed.
......@@ -44,6 +44,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<dtml-if expr="isMethodFiltered(id)">checked</dtml-if> value="1">
</td>
</tr>
<dtml-if expr="getFilteredPortalTypeList(method_id)">
<tr>
<td align="left" valign="top">
Portal Type <select size="5" multiple="multiple" name="<dtml-var id>_type">
......@@ -53,12 +54,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</select>
</td>
</tr>
</dtml-if>
<tr>
<td align="left" valign="top">
Expression <input type="text" name="<dtml-var id>_expression" size="20"
value="<dtml-var expr="getExpression(id)">">
</td>
</tr>
<tr>
<td align="left" valign="top">
Expression Cache Key(s) <input type="text" name="<dtml-var id>_expression_cache_key" size="20"
value="<dtml-var expr="getExpressionCacheKey(id)">">
</td>
</tr>
</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