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
181ff9ce
Commit
181ff9ce
authored
Nov 01, 2005
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- always look for WriteLockInterface *and* IWriteLock (the z3 version of the same interface)
parent
384b4342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+6
-6
No files found.
lib/python/OFS/PropertySheets.py
View file @
181ff9ce
...
...
@@ -15,6 +15,7 @@
$Id$
"""
import
time
,
App
.
Management
,
Globals
,
sys
from
webdav.interfaces
import
IWriteLock
from
webdav.WriteLockInterface
import
WriteLockInterface
from
ZPublisher.Converters
import
type_converters
from
Globals
import
DTMLFile
,
MessageDialog
...
...
@@ -391,7 +392,6 @@ class PropertySheet(Traversable, Persistent, Implicit):
else
:
result
[
code
].
append
(
prop
)
return
del
propstat
del
propdesc
...
...
@@ -474,6 +474,7 @@ class Virtual:
def
v_self
(
self
):
return
self
.
aq_parent
.
aq_parent
class
DefaultProperties
(
Virtual
,
PropertySheet
,
View
):
"""The default property set mimics the behavior of old-style Zope
properties -- it stores its property values in the instance of
...
...
@@ -567,7 +568,8 @@ class DAVProperties(Virtual, PropertySheet, View):
def
dav__supportedlock
(
self
):
vself
=
self
.
v_self
()
out
=
'
\
n
'
if
WriteLockInterface
.
isImplementedBy
(
vself
):
if
IWriteLock
.
providedBy
(
vself
)
or
\
WriteLockInterface
.
isImplementedBy
(
vself
):
out
+=
(
' <n:lockentry>
\
n
'
' <d:lockscope><d:exclusive/></d:lockscope>
\
n
'
' <d:locktype><d:write/></d:locktype>
\
n
'
...
...
@@ -578,10 +580,10 @@ class DAVProperties(Virtual, PropertySheet, View):
security
=
getSecurityManager
()
user
=
security
.
getUser
().
getId
()
vself
=
self
.
v_self
()
out
=
'
\
n
'
if
WriteLockInterface
.
isImplementedBy
(
vself
):
if
IWriteLock
.
providedBy
(
vself
)
or
\
WriteLockInterface
.
isImplementedBy
(
vself
):
locks
=
vself
.
wl_lockValues
(
killinvalids
=
1
)
for
lock
in
locks
:
...
...
@@ -595,7 +597,6 @@ class DAVProperties(Virtual, PropertySheet, View):
return
out
Globals
.
default__class_init__
(
DAVProperties
)
...
...
@@ -789,7 +790,6 @@ class FixedSchema(PropertySheet):
Globals
.
default__class_init__
(
FixedSchema
)
class
vps
(
Base
):
"""Virtual Propertysheets
...
...
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