Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
0d255eb4
Commit
0d255eb4
authored
Sep 28, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pformat the values in Base_viewDict
parent
9cb5f86d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDict.xml
...SkinTemplateItem/portal_skins/erp5_core/Base_viewDict.xml
+3
-1
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDict.xml
View file @
0d255eb4
...
@@ -63,6 +63,8 @@ def escape(data):\n
...
@@ -63,6 +63,8 @@ def escape(data):\n
data = data.replace("
<
", "
<
")\n
data = data.replace("
<
", "
<
")\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
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
0d255eb4
41062
41066
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment