Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes
ZopeVersionControl.EventLog.EventLog Class Reference
Inheritance diagram for ZopeVersionControl.EventLog.EventLog:
Inheritance graph
[legend]
Collaboration diagram for ZopeVersionControl.EventLog.EventLog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def addEntry
def getEntries
def __len__
def __nonzero__

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _data

Detailed Description

An EventLog encapsulates a collection of log entries.

Definition at line 21 of file EventLog.py.


Constructor & Destructor Documentation

Definition at line 24 of file EventLog.py.

00024 
00025     def __init__(self):
00026         self._data = IOBTree()


Member Function Documentation

Definition at line 43 of file EventLog.py.

00043 
00044     def __len__(self):
00045         return len(self._data)
    

Definition at line 46 of file EventLog.py.

00046 
00047     def __nonzero__(self):
00048         return len(self._data) > 0
00049 
00050 InitializeClass(EventLog)
00051 

def ZopeVersionControl.EventLog.EventLog.addEntry (   self,
  entry 
)
Add a new log entry.

Definition at line 30 of file EventLog.py.

00030 
00031     def addEntry(self, entry):
00032         """Add a new log entry."""
00033         if len(self._data):
00034             key = self._data.minKey() - 1
00035         else:
00036             key = sys.maxint
00037         self._data[key] = entry

Return a sequence of log entries.

Definition at line 39 of file EventLog.py.

00039 
00040     def getEntries(self):
00041         """Return a sequence of log entries."""
00042         return self._data.values()


Member Data Documentation

Definition at line 25 of file EventLog.py.

tuple ZopeVersionControl.EventLog.EventLog.security = ClassSecurityInfo() [static]

Definition at line 27 of file EventLog.py.


The documentation for this class was generated from the following file: