|
@@ -11,6 +11,14 @@ from tracim.lib.exception import ContentRevisionUpdateError, ContentRevisionDele
|
11
|
11
|
|
12
|
12
|
|
13
|
13
|
class RevisionsIntegrity(object):
|
|
14
|
+ """
|
|
15
|
+ Simple static used class to manage a list with list of ContentRevisionRO who are allowed to be updated.
|
|
16
|
+
|
|
17
|
+ When modify an already existing (understood have an identity in databse) ContentRevisionRO, if it's not in
|
|
18
|
+ RevisionsIntegrity._updatable_revisions list, a ContentRevisionUpdateError thrown.
|
|
19
|
+
|
|
20
|
+ This class is used by tracim.model.new_revision context manager.
|
|
21
|
+ """
|
14
|
22
|
_updatable_revisions = []
|
15
|
23
|
|
16
|
24
|
@classmethod
|