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
42c78df3
Commit
42c78df3
authored
Apr 09, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed getcontenttype to use default_content_type if defined
parent
5a6a0ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+3
-1
No files found.
lib/python/OFS/PropertySheets.py
View file @
42c78df3
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
"""Property sheets"""
"""Property sheets"""
__version__
=
'$Revision: 1.
69
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
70
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
,
Globals
import
time
,
string
,
App
.
Management
,
Globals
from
webdav.WriteLockInterface
import
WriteLockInterface
from
webdav.WriteLockInterface
import
WriteLockInterface
...
@@ -581,6 +581,8 @@ class DAVProperties(Virtual, PropertySheet, View):
...
@@ -581,6 +581,8 @@ class DAVProperties(Virtual, PropertySheet, View):
vself
=
self
.
v_self
()
vself
=
self
.
v_self
()
if
hasattr
(
vself
,
'content_type'
):
if
hasattr
(
vself
,
'content_type'
):
return
vself
.
content_type
return
vself
.
content_type
if
hasattr
(
vself
,
'default_content_type'
):
return
absattr
(
vself
.
default_content_type
)
return
''
return
''
def
dav__getcontentlength
(
self
):
def
dav__getcontentlength
(
self
):
...
...
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