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
36a57871
Commit
36a57871
authored
Oct 29, 2005
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the correct base class implement IWriteLock
parent
7a00e3e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/python/webdav/Lockable.py
lib/python/webdav/Lockable.py
+3
-0
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+1
-2
No files found.
lib/python/webdav/Lockable.py
View file @
36a57871
...
@@ -19,11 +19,13 @@ from AccessControl import ClassSecurityInfo
...
@@ -19,11 +19,13 @@ from AccessControl import ClassSecurityInfo
from
Globals
import
InitializeClass
from
Globals
import
InitializeClass
from
Globals
import
PersistentMapping
from
Globals
import
PersistentMapping
import
Acquisition
import
Acquisition
from
zope.interface
import
implements
from
EtagSupport
import
EtagSupport
from
EtagSupport
import
EtagSupport
from
WriteLockInterface
import
LockItemInterface
from
WriteLockInterface
import
LockItemInterface
from
WriteLockInterface
import
WriteLockInterface
from
WriteLockInterface
import
WriteLockInterface
from
interfaces
import
IWriteLock
class
ResourceLockedError
(
Exception
):
pass
class
ResourceLockedError
(
Exception
):
pass
...
@@ -36,6 +38,7 @@ class LockableItem(EtagSupport):
...
@@ -36,6 +38,7 @@ class LockableItem(EtagSupport):
__implements__ = (WriteLockInterface,)
__implements__ = (WriteLockInterface,)
"""
"""
implements
(
IWriteLock
)
# Protect methods using declarative security
# Protect methods using declarative security
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
...
...
lib/python/webdav/Resource.py
View file @
36a57871
...
@@ -35,7 +35,6 @@ from common import IfParser
...
@@ -35,7 +35,6 @@ from common import IfParser
from
common
import
isDavCollection
from
common
import
isDavCollection
from
common
import
Locked
,
Conflict
,
PreconditionFailed
from
common
import
Locked
,
Conflict
,
PreconditionFailed
from
interfaces
import
IDAVResource
from
interfaces
import
IDAVResource
from
interfaces
import
IWriteLock
from
WriteLockInterface
import
WriteLockInterface
from
WriteLockInterface
import
WriteLockInterface
...
@@ -47,7 +46,7 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
...
@@ -47,7 +46,7 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
such as PUT should be overridden to ensure correct behavior in
such as PUT should be overridden to ensure correct behavior in
the context of the object type."""
the context of the object type."""
implements
(
IDAVResource
,
IWriteLock
)
implements
(
IDAVResource
)
__dav_resource__
=
1
__dav_resource__
=
1
...
...
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