Commit d327b8e6 authored by Shane Hathaway's avatar Shane Hathaway

Collector #167

parent d784c5c1
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
############################################################################## ##############################################################################
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.148 2002/03/27 21:51:03 caseman Exp $""" $Id: ObjectManager.py,v 1.149 2002/04/12 19:35:30 shane Exp $"""
__version__='$Revision: 1.148 $'[11:-2] __version__='$Revision: 1.149 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, re, Products import os, App.FactoryDispatcher, re, Products
...@@ -413,6 +413,7 @@ class ObjectManager( ...@@ -413,6 +413,7 @@ class ObjectManager(
obj=self obj=self
seen={} seen={}
vals=[] vals=[]
relativePhysicalPath = ()
have=seen.has_key have=seen.has_key
x=0 x=0
while x < 100: while x < 100:
...@@ -422,13 +423,17 @@ class ObjectManager( ...@@ -422,13 +423,17 @@ class ObjectManager(
for i in obj._objects: for i in obj._objects:
try: try:
id=i['id'] id=i['id']
if (not have(id)) and (i['meta_type'] in t): physicalPath = relativePhysicalPath + (id,)
if (not have(physicalPath)) and (i['meta_type'] in t):
vals.append(get(id)) vals.append(get(id))
seen[id]=1 seen[physicalPath]=1
except: pass except: pass
if hasattr(obj,'aq_parent'): obj=obj.aq_parent if hasattr(obj,'aq_parent'):
else: return vals obj=obj.aq_parent
relativePhysicalPath = ('..',) + relativePhysicalPath
else:
return vals
x=x+1 x=x+1
return vals return vals
......
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