def _prelaunch(self, operation, uid=None, available_disk_space=0, **kwargs):
     """
     Overwrite method in order to return the correct number of stored dataTypes.
     """
     self.nr_of_datatypes = 0
     msg, _ = ABCSynchronous._prelaunch(self, operation, uid=None, **kwargs)
     return msg, self.nr_of_datatypes
 def _prelaunch(self, operation, uid=None, available_disk_space=0, **kwargs):
     """
     Overwrite method in order to return the correct number of stored datatypes.
     """
     self.nr_of_datatypes = 0
     msg, _ = ABCSynchronous._prelaunch(self, operation, uid=None, **kwargs)
     return msg, self.nr_of_datatypes
Exemple #3
0
    def _prelaunch(self, operation, uid=None, available_disk_space=0, **kwargs):
        """
        Before going with the usual prelaunch, get from input parameters the 'subject'.
        """
        if DataTypeMetaData.KEY_SUBJECT in kwargs:
            subject = kwargs.pop(DataTypeMetaData.KEY_SUBJECT)
        else:
            subject = DataTypeMetaData.DEFAULT_SUBJECT

        self.meta_data.update({DataTypeMetaData.KEY_SUBJECT: subject})

        return ABCSynchronous._prelaunch(self, operation, uid, available_disk_space, **kwargs)
Exemple #4
0
    def _prelaunch(self,
                   operation,
                   uid=None,
                   available_disk_space=0,
                   view_model=None,
                   **kwargs):
        """
        Before going with the usual prelaunch, get from input parameters the 'subject'.
        """

        self.meta_data.update(
            {DataTypeMetaData.KEY_SUBJECT: view_model.data_subject})
        self.generic_attributes.subject = view_model.data_subject

        return ABCSynchronous._prelaunch(self, operation, uid,
                                         available_disk_space, view_model,
                                         **kwargs)