瀏覽代碼

RevisionsIntegrity: Add comment

Bastien Sevajol 9 年之前
父節點
當前提交
f92689d5b8
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      tracim/tracim/model/__init__.py

+ 8 - 0
tracim/tracim/model/__init__.py 查看文件

11
 
11
 
12
 
12
 
13
 class RevisionsIntegrity(object):
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
     _updatable_revisions = []
22
     _updatable_revisions = []
15
 
23
 
16
     @classmethod
24
     @classmethod