[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locking/ commit
simple locking package
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Feb 3 14:00:29 EST 2005
On Thursday 03 February 2005 13:20, Brian Lloyd wrote:
> +class LockingAdapter(object):
> + """
> + Default ILockable adapter implementation.
> + """
> +
> + zope.interface.implements(ILockable)
> +
> + def __init__(self, context):
> + try:
> + self.storage = getUtility(ILockStorage, context=context)
> + except ComponentLookupError:
> + self.storage = getUtility(ILockStorage)
> + self.context = context
Mmh, it would seem more appropriate to use annotations for locking, no? You
could still have a lock tracker that listens to LockCreated and LockReleased
events.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-Checkins
mailing list