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
00d2d8c9
Commit
00d2d8c9
authored
Feb 09, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap long lines.
parent
0bae6177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/OFS/ObjectManager.py
src/OFS/ObjectManager.py
+8
-5
No files found.
src/OFS/ObjectManager.py
View file @
00d2d8c9
...
@@ -222,7 +222,8 @@ class ObjectManager(CopyContainer,
...
@@ -222,7 +222,8 @@ class ObjectManager(CopyContainer,
# Look at all globally visible meta types.
# Look at all globally visible meta types.
for
entry
in
getattr
(
Products
,
'meta_types'
,
()):
for
entry
in
getattr
(
Products
,
'meta_types'
,
()):
if
(
(
interfaces
is
not
None
)
or
(
entry
.
get
(
"visibility"
,
None
)
==
"Global"
)
):
if
((
interfaces
is
not
None
)
or
(
entry
.
get
(
"visibility"
,
None
)
==
"Global"
)):
external_candidates
.
append
(
entry
)
external_candidates
.
append
(
entry
)
# Filter the list of external candidates based on the
# Filter the list of external candidates based on the
...
@@ -230,7 +231,7 @@ class ObjectManager(CopyContainer,
...
@@ -230,7 +231,7 @@ class ObjectManager(CopyContainer,
if
interfaces
is
None
:
if
interfaces
is
None
:
interface_constrained_meta_types
=
external_candidates
interface_constrained_meta_types
=
external_candidates
else
:
else
:
interface_constrained_meta_types
=
[]
interface_constrained_meta_types
=
icmt
=
[]
for
entry
in
external_candidates
:
for
entry
in
external_candidates
:
try
:
try
:
eil
=
entry
.
get
(
'interfaces'
,
None
)
eil
=
entry
.
get
(
'interfaces'
,
None
)
...
@@ -238,7 +239,7 @@ class ObjectManager(CopyContainer,
...
@@ -238,7 +239,7 @@ class ObjectManager(CopyContainer,
for
ei
in
eil
:
for
ei
in
eil
:
for
i
in
interfaces
:
for
i
in
interfaces
:
if
ei
is
i
or
ei
.
extends
(
i
):
if
ei
is
i
or
ei
.
extends
(
i
):
i
nterface_constrained_meta_types
.
append
(
entry
)
i
cmt
.
append
(
entry
)
raise
BreakoutException
# only append 1ce
raise
BreakoutException
# only append 1ce
except
BreakoutException
:
except
BreakoutException
:
pass
pass
...
@@ -692,7 +693,8 @@ class ObjectManager(CopyContainer,
...
@@ -692,7 +693,8 @@ class ObjectManager(CopyContainer,
all_files
=
copy
.
copy
(
files
)
all_files
=
copy
.
copy
(
files
)
for
f
in
files
:
for
f
in
files
:
if
hasattr
(
aq_base
(
f
[
1
]),
'isPrincipiaFolderish'
)
and
f
[
1
].
isPrincipiaFolderish
:
if
(
hasattr
(
aq_base
(
f
[
1
]),
'isPrincipiaFolderish'
)
and
f
[
1
].
isPrincipiaFolderish
):
all_files
.
extend
(
findChildren
(
f
[
1
]))
all_files
.
extend
(
findChildren
(
f
[
1
]))
files
=
all_files
files
=
all_files
...
@@ -814,7 +816,8 @@ def findChildren(obj,dirname=''):
...
@@ -814,7 +816,8 @@ def findChildren(obj,dirname=''):
lst
=
[]
lst
=
[]
for
name
,
child
in
obj
.
objectItems
():
for
name
,
child
in
obj
.
objectItems
():
if
hasattr
(
aq_base
(
child
),
'isPrincipiaFolderish'
)
and
child
.
isPrincipiaFolderish
:
if
(
hasattr
(
aq_base
(
child
),
'isPrincipiaFolderish'
)
and
child
.
isPrincipiaFolderish
):
lst
.
extend
(
findChildren
(
child
,
dirname
+
obj
.
id
+
'/'
))
lst
.
extend
(
findChildren
(
child
,
dirname
+
obj
.
id
+
'/'
))
else
:
else
:
lst
.
append
((
dirname
+
obj
.
id
+
"/"
+
name
,
child
))
lst
.
append
((
dirname
+
obj
.
id
+
"/"
+
name
,
child
))
...
...
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