code: def set_sampler_info(self, sample):
          
          if sample.getSampler() and sample.getDateSampled():
              # Sampler and Date Sampled already set. This is correct
              return True
          sampler = self.get_form_value("Sampler", sample, sample.getSampler())
          sampled = self.get_form_value("getDateSampled", sample,
                                        sample.getDateSampled())
          if not all([sampler, sampled]):
              return False
          sample.setSampler(sampler)
          sample.setDateSampled(DateTime(sampled))
          return True
docs: Updates the Sampler and the Sample Date with the values provided in
          the request. If neither Sampler nor SampleDate are present in the
          request, returns False