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
111c169c
Commit
111c169c
authored
Aug 14, 2002
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix for bug 332.
parent
17f0a830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+8
-4
No files found.
lib/python/OFS/PropertySheets.py
View file @
111c169c
...
@@ -12,7 +12,8 @@
...
@@ -12,7 +12,8 @@
##############################################################################
##############################################################################
"""Property sheets"""
"""Property sheets"""
__version__
=
'$Revision: 1.85 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.86 $'
[
11
:
-
2
]
import
time
,
App
.
Management
,
Globals
import
time
,
App
.
Management
,
Globals
from
webdav.WriteLockInterface
import
WriteLockInterface
from
webdav.WriteLockInterface
import
WriteLockInterface
...
@@ -26,6 +27,7 @@ from Globals import Persistent
...
@@ -26,6 +27,7 @@ from Globals import Persistent
from
Traversable
import
Traversable
from
Traversable
import
Traversable
from
Acquisition
import
aq_base
from
Acquisition
import
aq_base
from
AccessControl
import
getSecurityManager
from
AccessControl
import
getSecurityManager
from
webdav.common
import
isDavCollection
from
cgi
import
escape
from
cgi
import
escape
class
View
(
App
.
Management
.
Tabs
,
Base
):
class
View
(
App
.
Management
.
Tabs
,
Base
):
...
@@ -120,8 +122,10 @@ class PropertySheet(Traversable, Persistent, Implicit):
...
@@ -120,8 +122,10 @@ class PropertySheet(Traversable, Persistent, Implicit):
# space identifier.
# space identifier.
if
id
in
self
.
__reserved_ids
:
if
id
in
self
.
__reserved_ids
:
raise
ValueError
,
"'%s' is a reserved Id (forbidden Ids are: %s) "
%
\
raise
ValueError
(
(
id
,
self
.
__reserved_ids
)
"'%s' is a reserved Id (forbidden Ids are: %s) "
%
(
id
,
self
.
__reserved_ids
))
self
.
id
=
id
self
.
id
=
id
self
.
_md
=
md
or
{}
self
.
_md
=
md
or
{}
...
@@ -514,7 +518,7 @@ class DAVProperties(Virtual, PropertySheet, View):
...
@@ -514,7 +518,7 @@ class DAVProperties(Virtual, PropertySheet, View):
def
dav__resourcetype
(
self
):
def
dav__resourcetype
(
self
):
vself
=
self
.
v_self
()
vself
=
self
.
v_self
()
if
(
hasattr
(
vself
,
'__dav_collection__'
)
or
if
(
isDavCollection
(
vself
)
or
getattr
(
aq_base
(
vself
),
'isAnObjectManager'
,
None
)):
getattr
(
aq_base
(
vself
),
'isAnObjectManager'
,
None
)):
return
'<n:collection/>'
return
'<n:collection/>'
return
''
return
''
...
...
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