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
f4b41113
Commit
f4b41113
authored
Mar 31, 2004
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In FTP, log any failed attempts to stat subobjects.
Still show the directory, though.
parent
bf1ee86c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+8
-7
No files found.
lib/python/OFS/ObjectManager.py
View file @
f4b41113
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
##############################################################################
##############################################################################
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.17
3 2004/03/23 06:51:13 Zen
Exp $"""
$Id: ObjectManager.py,v 1.17
4 2004/03/31 22:41:13 shane
Exp $"""
__version__
=
'$Revision: 1.17
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.17
4
$'
[
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
...
@@ -613,13 +613,14 @@ class ObjectManager(
...
@@ -613,13 +613,14 @@ class ObjectManager(
for
k
,
v
in
files
:
for
k
,
v
in
files
:
# Note that we have to tolerate failure here, because
# Note that we have to tolerate failure here, because
# Broken objects won't stat correctly. If an object fails
# Broken objects won't stat correctly. If an object fails
# to be able to stat itself, we will ignore it.
# to be able to stat itself, we will ignore it, but log
try
:
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
# the error.
try
:
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
except
:
except
:
LOG
(
"FTP"
,
ERROR
,
"Failed to stat file '%s'"
%
k
,
error
=
sys
.
exc_info
())
stat
=
None
stat
=
None
if
k
!=
"Control_Panel"
:
__traceback_info__
=
(
k
,
v
)
raise
if
stat
is
not
None
:
if
stat
is
not
None
:
out
=
out
+
((
k
,
stat
),)
out
=
out
+
((
k
,
stat
),)
return
marshal
.
dumps
(
out
)
return
marshal
.
dumps
(
out
)
...
...
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