Exemple #1
0
 def save(self, *args, **kwargs):  # pylint: disable=arguments-differ
     """
     Save this InstanceReference.
     """
     super().save(*args, **kwargs)
     publish_data({
         'type': 'instance_update',
         'instance_id': self.pk,
     })
Exemple #2
0
 def save(self, *args, **kwargs):  # pylint: disable=arguments-differ
     """
     Save this server.
     """
     super().save(*args, **kwargs)
     publish_data({
         'type': 'server_update',
         'server_pk': self.pk,
     })
 def save(self, *args, **kwargs):  # pylint: disable=arguments-differ
     """
     Save this OpenEdXAppServer
     """
     # Always override configuration_settings - it's not meant to be manually set. We can't
     # assert that it isn't set because if a ValidationError occurred, this method could be
     # called multiple times before this AppServer is successfully created.
     if not self.pk:
         self.configuration_settings = self.create_configuration_settings()
     super().save(*args, **kwargs)
     publish_data({
         'type': 'openedx_appserver_update',
         'appserver_id': self.pk,
         'instance_id': self.owner.pk,
     })