コード例 #1
0
ファイル: resultsimport.py プロジェクト: nunobraga/Bika-LIMS
 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
コード例 #2
0
ファイル: resultsimport.py プロジェクト: nunobraga/Bika-LIMS
 def __init__(self, infile, mimetype):
     Logger.__init__(self)
     self._infile = infile
     self._header = {}
     self._rawresults = {}
     self._mimetype = mimetype
     self._numline = 0
コード例 #3
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
コード例 #4
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
コード例 #5
0
 def __init__(self, infile, mimetype):
     Logger.__init__(self)
     self._infile = infile
     self._header = {}
     self._rawresults = {}
     self._mimetype = mimetype
     self._numline = 0
コード例 #6
0
ファイル: resultsimport.py プロジェクト: nassimcha/sencua
 def __init__(self,
              parser,
              context,
              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 = ['getId', 'getClientSampleID']
     self._priorizedsearchcriteria = ''
     self.bsc = getToolByName(self.context, 'bika_setup_catalog')
     self.bac = getToolByName(self.context, 'bika_analysis_catalog')
     self.ar_catalog = getToolByName(self.context,
                                     CATALOG_ANALYSIS_REQUEST_LISTING)
     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 = [
             'unassigned', 'assigned', 'to_be_verified'
         ]
     if not self._idsearch:
         self._idsearch = ['getId']
     self.instrument_uid = instrument_uid