Commit 1e3fcbb6 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Make the utility script that outputs the list of dead proxy fields return html...

Make the utility script that outputs the list of dead proxy fields return html with clickable links.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 299eff12
...@@ -185,16 +185,22 @@ ...@@ -185,16 +185,22 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""List all dead proxy fields\n <value> <string encoding="cdata"><![CDATA[
"""List all dead proxy fields\n
"""\n """\n
print "<html>"\n
\n \n
for field_path, field in context.ZopeFind(\n for field_path, field in context.ZopeFind(\n
context.portal_skins, obj_metatypes=[\'ProxyField\'], search_sub=1):\n context.portal_skins, obj_metatypes=[\'ProxyField\'], search_sub=1):\n
if field.getTemplateField() is None:\n if field.getTemplateField() is None:\n
print field_path\n print \'<a href="%s/%s/manage_main">%s</a><br />\' % (context.absolute_url(), field_path, field_path) \n
\n \n
print "</html>"\n
return printed\n return printed\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
......
219 221
\ No newline at end of file \ No newline at end of file
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