Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

migration_handler.py 591B

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