Example #1
0
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()
Example #2
0
 def configure(self):
     sync_base = RationalAPI(self.config)
     self.alm = RationalConnector(self.config, sync_base)