Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d327b8e6
Commit
d327b8e6
authored
Apr 12, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #167
parent
d784c5c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+11
-6
No files found.
lib/python/OFS/ObjectManager.py
View file @
d327b8e6
...
...
@@ -12,9 +12,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.14
8 2002/03/27 21:51:03 caseman
Exp $"""
$Id: ObjectManager.py,v 1.14
9 2002/04/12 19:35:30 shane
Exp $"""
__version__
=
'$Revision: 1.14
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.14
9
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
re
,
Products
...
...
@@ -413,6 +413,7 @@ class ObjectManager(
obj
=
self
seen
=
{}
vals
=
[]
relativePhysicalPath
=
()
have
=
seen
.
has_key
x
=
0
while
x
<
100
:
...
...
@@ -422,13 +423,17 @@ class ObjectManager(
for
i
in
obj
.
_objects
:
try
:
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
))
seen
[
id
]
=
1
seen
[
physicalPath
]
=
1
except
:
pass
if
hasattr
(
obj
,
'aq_parent'
):
obj
=
obj
.
aq_parent
else
:
return
vals
if
hasattr
(
obj
,
'aq_parent'
):
obj
=
obj
.
aq_parent
relativePhysicalPath
=
(
'..'
,)
+
relativePhysicalPath
else
:
return
vals
x
=
x
+
1
return
vals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment