[Checkins]
SVN: z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/
It is sometimes handy to be able to access the activelock
property from
Michael Kerrin
michael.kerrin at openapp.ie
Thu May 31 15:56:39 EDT 2007
Log message for revision 76061:
It is sometimes handy to be able to access the activelock property from
non-webdav based requests.
Changed:
U z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/configure.zcml
U z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/properties.py
-=-
Modified: z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/configure.zcml
===================================================================
--- z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/configure.zcml 2007-05-31 19:54:08 UTC (rev 76060)
+++ z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/configure.zcml 2007-05-31 19:56:38 UTC (rev 76061)
@@ -28,7 +28,7 @@
<adapter
factory=".properties.DAVActiveLock"
for="zope.interface.Interface
- z3c.dav.interfaces.IWebDAVRequest"
+ zope.publisher.interfaces.http.IHTTPRequest"
provides="z3c.dav.coreproperties.IActiveLock"
/>
Modified: z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/properties.py
===================================================================
--- z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/properties.py 2007-05-31 19:54:08 UTC (rev 76060)
+++ z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/properties.py 2007-05-31 19:56:38 UTC (rev 76061)
@@ -26,6 +26,7 @@
from zope import component
from zope import interface
import zope.locking.interfaces
+import zope.publisher.interfaces.http
from zope.traversing.browser.absoluteurl import absoluteURL
from z3c.dav.coreproperties import ILockEntry, IDAVSupportedlock, \
@@ -116,7 +117,8 @@
return [ExclusiveLockEntry(), SharedLockEntry()]
- at component.adapter(interface.Interface, z3c.dav.interfaces.IWebDAVRequest)
+ at component.adapter(interface.Interface,
+ zope.publisher.interfaces.http.IHTTPRequest)
@interface.implementer(IActiveLock)
def DAVActiveLock(context, request):
"""
More information about the Checkins
mailing list