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
49421aab
Commit
49421aab
authored
Feb 18, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an FTP support bug that sometimes kept simple items from producting FTP listings.
parent
cf3f988c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+5
-3
No files found.
lib/python/OFS/SimpleItem.py
View file @
49421aab
...
...
@@ -107,8 +107,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.3
4 1999/02/05 21:11:21 brian
Exp $'''
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.3
5 1999/02/18 19:37:16 amos
Exp $'''
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
from
ExtensionClass
import
Base
...
...
@@ -273,7 +273,9 @@ class Item(Base, CopySource, App.Management.Tabs):
"""Directory listing for FTP. In the case of non-Foldoid objects,
the listing should contain one object, the object itself."""
stat
=
marshal
.
loads
(
self
.
manage_FTPstat
(
REQUEST
))
return
marshal
.
dumps
((
self
.
id
,
stat
))
if
callable
(
self
.
id
):
id
=
self
.
id
()
else
:
id
=
self
.
id
return
marshal
.
dumps
((
id
,
stat
))
def
absolute_url
(
self
):
"""Return an absolute url to the object. Note that the url
...
...
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