class Command(BaseCommand): help = 'Rational CLM <-> SDE sync utility.' def configure(self): sync_base = RationalAPI(self.config) self.alm = RationalConnector(self.config, sync_base) def handle(self): self.alm.initialize() self.alm.synchronize() return True def __exit__(self, type, value, traceback): if self.alm and self.alm.field_cache: self.alm.field_cache.close()
def configure(self): sync_base = RationalAPI(self.config) self.alm = RationalConnector(self.config, sync_base)