Kaynağa Gözat

RevisionsIntegrity: Add comment

Bastien Sevajol 9 yıl önce
ebeveyn
işleme
f92689d5b8
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      tracim/tracim/model/__init__.py

+ 8 - 0
tracim/tracim/model/__init__.py Dosyayı Görüntüle

@@ -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