equal
deleted
inserted
replaced
737 def migration_scripts_dir(cls): |
737 def migration_scripts_dir(cls): |
738 """cubicweb migration scripts directory""" |
738 """cubicweb migration scripts directory""" |
739 if CWDEV: |
739 if CWDEV: |
740 return join(CW_SOFTWARE_ROOT, 'misc', 'migration') |
740 return join(CW_SOFTWARE_ROOT, 'misc', 'migration') |
741 mdir = join(_INSTALL_PREFIX, 'share', 'cubicweb', 'migration') |
741 mdir = join(_INSTALL_PREFIX, 'share', 'cubicweb', 'migration') |
742 if not exists(mdif): |
742 if not exists(mdir): |
743 raise ConfigurationError('migration path %s doesn\'t exist' % mdir) |
743 raise ConfigurationError('migration path %s doesn\'t exist' % mdir) |
744 return mdir |
744 return mdir |
745 |
745 |
746 @classmethod |
746 @classmethod |
747 def config_for(cls, appid, config=None): |
747 def config_for(cls, appid, config=None): |