Commit bfc5af64 authored by Bartek Górny's avatar Bartek Górny

changed field title, made title and ref uneditable, trimmed preview to 2000 chars

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11521 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17754dd9
......@@ -70,7 +70,8 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
htmlrepr=\'<div style="background-color:white;color:black;">%s</div>\' % context.getHtmlRepresentation()\n
htmlrepr=context.getHtmlRepresentation()[:2000]\n
htmlrepr=\'<div style="background-color:white;color:black;">%s</div>\' % htmlrepr\n
context.log(context.REQUEST[\'URL\'])\n
if context.portal_type==\'Spreadsheet\':\n
htmlrepr=htmlrepr.replace(\'<A HREF="#table\',\'<A HREF="%s#table\' % context.REQUEST[\'URL\'])\n
......@@ -119,10 +120,10 @@ return htmlrepr\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getitem_</string>
<string>_getattr_</string>
<string>context</string>
<string>htmlrepr</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
......
......@@ -265,7 +265,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>html_representation</string> </value>
<value> <string>Content preview</string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
......
......@@ -215,7 +215,7 @@
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
......
......@@ -215,7 +215,7 @@
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
......
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