Tabs -> 4 × spaces
[Plinn.git] / interfaces / ContentHistory.py
1 from zope.interface import Interface
2
3 class IContentHistory(Interface):
4 """
5 Utility to manage historical entries of a content
6 """
7
8 def listEntries() :
9 """
10 Return historical entries of the content
11 """
12
13 def getHistoricalRevisionByKey(key) :
14 """
15 Return the object revision at state targeted by key.
16 """
17
18 def compare(leftkey, rightkey) :
19 """
20 Return formated comparision of 2 revisions of content
21 """
22
23 def restore(key) :
24 """
25 Restore the content by editing chosen versionned attributes.
26 example: for a Document, only the textual content will be restored.
27 Metadata or talkback stay unchanged.
28 """