Commit 64b8404f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Initial import.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1315 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d4713cf
## Script (Python) "listDict"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
ret = '<html><body><table width=100%>\n'
dict = context.showDict().items()
dict.sort()
i = 0
for k,v in dict:
if (i % 2) == 0:
c = '#88dddd'
else:
c = '#dddd88'
i += 1
ret += '<tr bgcolor="%s"><td >%s</td><td>%s</td></tr>\n' % (c, k, repr(v))
ret += '</table></body></html>\n'
return ret
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