Example #1
0
 def __init__(self, parser, context,
              idsearchcriteria=None,
              override=[False, False],
              allowed_ar_states=None,
              allowed_analysis_states=None,
              instrument_uid=None):
     Logger.__init__(self)
     self._parser = parser
     self.context = context
     self._allowed_ar_states = allowed_ar_states
     self._allowed_analysis_states = allowed_analysis_states
     self._override = override
     self._idsearch = idsearchcriteria
     self._priorizedsearchcriteria = ''
     self.bsc = getToolByName(self.context, 'bika_setup_catalog')
     self.bac = getToolByName(self.context, 'bika_analysis_catalog')
     self.pc = getToolByName(self.context, 'portal_catalog')
     self.bc = getToolByName(self.context, 'bika_catalog')
     self.wf = getToolByName(self.context, 'portal_workflow')
     if not self._allowed_ar_states:
         self._allowed_ar_states=['sample_received',
                                  'attachment_due',
                                  'to_be_verified']
     if not self._allowed_analysis_states:
         self._allowed_analysis_states=['sampled',
                                        'sample_received',
                                        'attachment_due',
                                        'to_be_verified']
     if not self._idsearch:
         self._idsearch=['getRequestID']
     self.instrument_uid=instrument_uid
Example #2
0
 def __init__(self,
              parser,
              context,
              idsearchcriteria=None,
              override=[False, False],
              allowed_ar_states=None,
              allowed_analysis_states=None,
              instrument_uid=None):
     Logger.__init__(self)
     self._parser = parser
     self.context = context
     self._allowed_ar_states = allowed_ar_states
     self._allowed_analysis_states = allowed_analysis_states
     self._override = override
     self._idsearch = idsearchcriteria
     self._priorizedsearchcriteria = ''
     self.bsc = getToolByName(self.context, 'bika_setup_catalog')
     self.bac = getToolByName(self.context, 'bika_analysis_catalog')
     self.pc = getToolByName(self.context, 'portal_catalog')
     self.bc = getToolByName(self.context, 'bika_catalog')
     self.wf = getToolByName(self.context, 'portal_workflow')
     if not self._allowed_ar_states:
         self._allowed_ar_states = [
             'sample_received', 'attachment_due', 'to_be_verified'
         ]
     if not self._allowed_analysis_states:
         self._allowed_analysis_states = [
             'sampled', 'sample_received', 'attachment_due',
             'to_be_verified'
         ]
     if not self._idsearch:
         self._idsearch = ['getRequestID']
     self.instrument_uid = instrument_uid
Example #3
0
 def __init__(self, infile, mimetype):
     Logger.__init__(self)
     self._infile = infile
     self._header = {}
     self._rawresults = {}
     self._mimetype = mimetype
     self._numline = 0
Example #4
0
 def __init__(self, infile, mimetype):
     Logger.__init__(self)
     self._infile = infile
     self._header = {}
     self._rawresults = {}
     self._mimetype = mimetype
     self._numline = 0