X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/Products/Plinn/interfaces/ContentHistory.py diff --git a/Products/Plinn/interfaces/ContentHistory.py b/Products/Plinn/interfaces/ContentHistory.py new file mode 100755 index 0000000..2046ab4 --- /dev/null +++ b/Products/Plinn/interfaces/ContentHistory.py @@ -0,0 +1,28 @@ +from zope.interface import Interface + +class IContentHistory(Interface): + """ + Utility to manage historical entries of a content + """ + + def listEntries() : + """ + Return historical entries of the content + """ + + def getHistoricalRevisionByKey(key) : + """ + Return the object revision at state targeted by key. + """ + + def compare(leftkey, rightkey) : + """ + Return formated comparision of 2 revisions of content + """ + + def restore(key) : + """ + Restore the content by editing chosen versionned attributes. + example: for a Document, only the textual content will be restored. + Metadata or talkback stay unchanged. + """ \ No newline at end of file