From b18d8da1e0a437e0e81610d15a0c766e7c37fb40 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 4 May 2004 19:28:08 +0000
Subject: [PATCH] first submission

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@825 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../skins/erp5_core/ERP5Site_printObjectPath.py   | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100755 product/ERP5/skins/erp5_core/ERP5Site_printObjectPath.py

diff --git a/product/ERP5/skins/erp5_core/ERP5Site_printObjectPath.py b/product/ERP5/skins/erp5_core/ERP5Site_printObjectPath.py
new file mode 100755
index 0000000000..df5ef9b487
--- /dev/null
+++ b/product/ERP5/skins/erp5_core/ERP5Site_printObjectPath.py
@@ -0,0 +1,15 @@
+##parameters=
+site = context.portal_url.getPortalObject()
+object_list = []
+for o in site.objectValues():
+  if hasattr(o,'getMetaType'):
+    if o.getMetaType()=='ERP5 Folder':
+      path = o.getPhysicalPath()
+      object_ids = o.objectIds()
+      for id in object_ids:
+        object_list += [path + (id,)]
+object_list.sort()
+for path in object_list:
+  print '/'.join(path)
+return printed
+
-- 
2.30.9