Back to index

plone3  3.1.7
_athistoryaware.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 
00003 class IATHistoryAware(Interface):
00004     """Archetypes history awareness
00005     
00006     Provide access to older revisions of persistent Archetypes
00007     
00008     """
00009 
00010     def getHistories(max=10):
00011         """Iterate over at most max historic revisions.
00012         
00013         Yields (object, time, transaction_note, user) tuples, where object
00014         is an object revision approximating what was committed at that time,
00015         with the current acquisition context.
00016         
00017         """