Commit 413380b6 authored by Ivan Tyagov's avatar Ivan Tyagov

Make previous changes in r25278 configurable from outside.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25279 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eca9882d
......@@ -61,8 +61,6 @@
containing searched words as well highlighting the searched \n
words in the text itself.\n
"""\n
max_lines = 5\n
max_text_length = 500\n
is_gadget_mode = context.REQUEST.get(\'is_gadget_mode\', 0)\n
\n
if is_gadget_mode:\n
......@@ -145,7 +143,7 @@ return result\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>document_text=None, selection=None</string> </value>
<value> <string>document_text=None, selection=None, max_lines = 5, max_text_length = 500</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -165,7 +163,7 @@ return result\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -211,6 +209,8 @@ return result\n
<tuple>
<none/>
<none/>
<int>5</int>
<int>500</int>
</tuple>
</value>
</item>
......
954
\ No newline at end of file
955
\ 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