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
c6d0e5c9
Commit
c6d0e5c9
authored
Jun 23, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged FTP->Broken fix from 22 branch
parent
95011fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+10
-5
No files found.
lib/python/OFS/ObjectManager.py
View file @
c6d0e5c9
...
...
@@ -84,9 +84,9 @@
##############################################################################
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.
99 2000/06/16 19:40:14 srichter
Exp $"""
$Id: ObjectManager.py,v 1.
100 2000/06/23 18:02:03 brian
Exp $"""
__version__
=
'$Revision: 1.
99
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
100
$'
[
11
:
-
2
]
import
App.Management
,
Acquisition
,
Globals
,
CopySupport
,
Products
import
os
,
App
.
FactoryDispatcher
,
ts_regex
,
Products
...
...
@@ -510,7 +510,7 @@ class ObjectManager(
def
manage_FTPlist
(
self
,
REQUEST
):
"Directory listing for FTP"
out
=
()
# check to see if we are being acquiring or not
ob
=
self
while
1
:
...
...
@@ -531,8 +531,13 @@ class ObjectManager(
self
.
isTopLevelPrincipiaApplicationObject
):
files
.
insert
(
0
,(
'..'
,
self
.
aq_parent
))
for
k
,
v
in
files
:
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
out
=
out
+
((
k
,
stat
),)
# Note that we have to tolerate failure here, because
# Broken objects won't stat correctly. If an object fails
# to be able to stat itself, we will ignore it.
try
:
stat
=
marshal
.
loads
(
v
.
manage_FTPstat
(
REQUEST
))
except
:
stat
=
None
if
stat
is
not
None
:
out
=
out
+
((
k
,
stat
),)
return
marshal
.
dumps
(
out
)
def
manage_FTPstat
(
self
,
REQUEST
):
...
...
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