Package buildbot :: Module locks :: Class BaseLockId
[frames | no frames]

Class BaseLockId

ComparableMixin --+
                  |
                 BaseLockId

Known Subclasses:
MasterLock, SlaveLock

Abstract base class for LockId classes.

Sets up the 'access()' function for the LockId's available to the user
(MasterLock and SlaveLock classes).
Derived classes should add
- Comparison with the L{util.ComparableMixin} via the L{compare_attrs}
  class variable.
- Link to the actual lock class should be added with the L{lockClass}
  class variable.

Method Summary
  access(self, mode)
Express how the lock should be accessed
  defaultAccess(self)
For buildbot 0.7.7 compability: When user doesn't specify an access mode, this one is chosen.
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
    Inherited from ComparableMixin
Implements __implemented__ = <implementedBy buildbot.util.Comparabl...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
list compare_attrs = []

Method Details

access(self, mode)

Express how the lock should be accessed

defaultAccess(self)

For buildbot 0.7.7 compability: When user doesn't specify an access mode, this one is chosen.

Generated by Epydoc 2.1 on Tue Sep 16 09:16:00 2008 http://epydoc.sf.net