def convert(_startup): _startup.__class__ = VistrailsStartup ConfigurationObject.convert(_startup.configuration) for _pkg in _startup.db_enabled_packages.db_packages: StartupPackage.convert(_pkg) for _pkg in _startup.db_disabled_packages.db_packages: StartupPackage.convert(_pkg)
def convert(_pkg): _pkg.__class__ = StartupPackage if _pkg.configuration is not None: ConfigurationObject.convert(_pkg.configuration) _pkg.prefix = None