Package buildbot :: Package status :: Module persistent_queue :: Class ListMemoryQueue
[frames] | no frames]

Class ListMemoryQueue

source code

object --+
         |
        ListMemoryQueue

Simple length bounded queue using list.

Instance Methods
 
__init__(self, maxItems=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
pushItem(self, item) source code
 
insertBackChunk(self, chunk) source code
 
popChunk(self, nbItems=None) source code
 
save(self) source code
 
items(self) source code
 
nbItems(self) source code
 
maxItems(self) source code
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implemented__ = <implementedBy buildbot.status.persistent_qu...
Properties

Inherited from object: __class__

Method Details

__init__(self, maxItems=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']


Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.persistent_queue.ListMemoryQueue>