From 1e3fcbb6c88c165198ac9eeb7373969749f0209c Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Mon, 28 Apr 2008 11:53:20 +0000
Subject: [PATCH] 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
---
 .../erp5_toolbox/SkinsTool_getDeadProxyFieldList.xml | 12 +++++++++---
 bt5/erp5_forge/bt/revision                           |  2 +-
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/SkinsTool_getDeadProxyFieldList.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/SkinsTool_getDeadProxyFieldList.xml
index c288b6ffcf..68132536d5 100644
--- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/SkinsTool_getDeadProxyFieldList.xml
+++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/SkinsTool_getDeadProxyFieldList.xml
@@ -185,16 +185,22 @@
         </item>
         <item>
             <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
+print "<html>"\n
 \n
 for field_path, field in context.ZopeFind(\n
             context.portal_skins, obj_metatypes=[\'ProxyField\'], search_sub=1):\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
+print "</html>"\n
 return printed\n
-</string> </value>
+
+
+]]></string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision
index 1199cd493e..c5a644422f 100644
--- a/bt5/erp5_forge/bt/revision
+++ b/bt5/erp5_forge/bt/revision
@@ -1 +1 @@
-219
\ No newline at end of file
+221
\ No newline at end of file
-- 
2.30.9