Browse Source

New headers for dummy MH

Yann Weber 9 years ago
parent
commit
f386701392
1 changed files with 10 additions and 3 deletions
  1. 10
    3
      plugins/dummy_datasource/migration_handler.py

+ 10
- 3
plugins/dummy_datasource/migration_handler.py View File

2
 
2
 
3
 ##@brief Abtract class for migration handlers
3
 ##@brief Abtract class for migration handlers
4
 class DummyMigrationHandler(object):
4
 class DummyMigrationHandler(object):
5
+
6
+    ##@brief Create a new migration handler given DB connection options
5
     def __init__(self, *args, **kwargs):
7
     def __init__(self, *args, **kwargs):
6
         pass
8
         pass
7
     
9
     
10
+    ##@brief DB initialisation
11
+    #@param emclass_list list : list of EmClasses concerned by this MH
12
+    def init_db(self, emclass_list):
13
+        pass
14
+    
15
+    ##@todo redefine
8
     def register_change(self, model, uid, initial_state, new_state):
16
     def register_change(self, model, uid, initial_state, new_state):
9
         pass
17
         pass
10
 
18
 
19
+    ##@todo redefine
11
     def register_model_state(self, em, state_hash):
20
     def register_model_state(self, em, state_hash):
12
         pass
21
         pass
13
-
14
-    def init_db(self):
15
-        pass
22
+    

Loading…
Cancel
Save