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 @@ ...@@ -70,7 +70,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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 context.log(context.REQUEST[\'URL\'])\n
if context.portal_type==\'Spreadsheet\':\n if context.portal_type==\'Spreadsheet\':\n
htmlrepr=htmlrepr.replace(\'<A HREF="#table\',\'<A HREF="%s#table\' % context.REQUEST[\'URL\'])\n htmlrepr=htmlrepr.replace(\'<A HREF="#table\',\'<A HREF="%s#table\' % context.REQUEST[\'URL\'])\n
...@@ -119,10 +120,10 @@ return htmlrepr\n ...@@ -119,10 +120,10 @@ return htmlrepr\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>_getitem_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>htmlrepr</string> <string>htmlrepr</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>html_representation</string> </value> <value> <string>Content preview</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
......
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
......
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <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