Пример #1
0
 def serialize(self):
     try:
         return serialize(self.__dict__)
     except:
         tolog(
             ' received exception while converting BalsamJob to json string: '
             + str(sys.exc_info()[1]))
         raise
Пример #2
0
    def serialize(self):
        # create temp ArgoJob and fill with this list of json job strings
        tmp_argojob = ArgoJob()
        tmp_argojob.__dict__ = self.__dict__.copy()
        tmp_argojob.jobs = self.get_jobs_dictionary_list()

        try:
            return serialize(tmp_argojob.__dict__)
        except:
            tolog(" received exception while converting ArgoJob to json string: " + str(sys.exc_info()[1]))
            raise
Пример #3
0
    def serialize(self):
        # create temp ArgoJob and fill with this list of json job strings
        tmp_argojob = ArgoJob()
        tmp_argojob.__dict__ = self.__dict__.copy()
        tmp_argojob.jobs = self.get_jobs_dictionary_list()

        try:
            return serialize(tmp_argojob.__dict__)
        except:
            tolog(
                ' received exception while converting ArgoJob to json string: '
                + str(sys.exc_info()[1]))
            raise
Пример #4
0
 def serialize(self):
     try:
         return serialize(self.__dict__)
     except:
         tolog(" received exception while converting BalsamJob to json string: " + str(sys.exc_info()[1]))
         raise
Пример #5
0
 def get_job_list_text(self):
     return serialize(self.get_jobs_dictionary_list())
Пример #6
0
 def get_serialized_message(self):
     return serialize(self.__dict__)
Пример #7
0
 def get_job_list_text(self):
     return serialize(self.get_jobs_dictionary_list())
Пример #8
0
 def get_serialized_message(self):
     return serialize(self.__dict__)