make the correct base class implement IWriteLock

parent 7a00e3e1
...@@ -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()
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment