Commit 0d255eb4 authored by Jérome Perrin's avatar Jérome Perrin

pformat the values in Base_viewDict

parent 9cb5f86d
...@@ -63,6 +63,8 @@ def escape(data):\n ...@@ -63,6 +63,8 @@ def escape(data):\n
data = data.replace("<", "&lt;")\n data = data.replace("<", "&lt;")\n
return data\n return data\n
\n \n
from pprint import pformat\n
\n
ret = \'<html><body><table width=100%>\\n\'\n ret = \'<html><body><table width=100%>\\n\'\n
\n \n
dict = context.showDict().items()\n dict = context.showDict().items()\n
...@@ -74,7 +76,7 @@ for k,v in dict:\n ...@@ -74,7 +76,7 @@ for k,v in dict:\n
else:\n else:\n
c = \'#dddd88\'\n c = \'#dddd88\'\n
i += 1\n i += 1\n
ret += \'<tr bgcolor="%s"><td >%s</td><td>%s</td></tr>\\n\' % (escape(c), escape(k), escape(repr(v)))\n ret += \'<tr bgcolor="%s"><td >%s</td><td><pre>%s</pre></td></tr>\\n\' % (escape(c), escape(k), escape(pformat(v)))\n
\n \n
ret += \'</table></body></html>\\n\'\n ret += \'</table></body></html>\\n\'\n
\n \n
......
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