コード例 #1
0
ファイル: tracreporting.py プロジェクト: papagr/TheLMA
 def reset(self):
     BaseTracTool.reset(self)
     self._executed_stock_worklists = None
     self.__log_file_stream = None
     self._log_file_attachment = None
     self._comment = None
     self._ticket_number = None
コード例 #2
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
 def reset(self):
     """
     Resets all value except for the instantiation arguments.
     """
     BaseTracTool.reset(self)
     self._ticket_id = None
     self._update_wrapper = None
     self._comment = None
コード例 #3
0
ファイル: uploadreport.py プロジェクト: helixyte/TheLMA
 def reset(self):
     """
     Resets all values except for the instantiation values.
     """
     BaseTracTool.reset(self)
     self.__experiment_type_id = None
     self.__comment = None
     self.__description = dict()
     self.__excel_stream = None
     self.__info_stream = None
     self.__assign_stream = None
     self.__attachments = []
コード例 #4
0
ファイル: uploadreport.py プロジェクト: papagr/TheLMA
 def reset(self):
     """
     Resets all values except for the instantiation values.
     """
     BaseTracTool.reset(self)
     self.__experiment_type_id = None
     self.__comment = None
     self.__description = dict()
     self.__excel_stream = None
     self.__info_stream = None
     self.__assign_stream = None
     self.__attachments = []
コード例 #5
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
    def __init__(self, requester, experiment_metadata, parent=None):
        """
        Constructor.

        :param experiment_metadata_label: The new experiment metadata.
        :type experiment_metadata_label:
            :class:`thelma.entities.experiment.ExperimentMetadata`
        :param requester: The user who will be owner and reporter of the ticket.
        :type requester: :class:`thelma.entities.user.User`
        """
        BaseTracTool.__init__(self, parent=parent)

        #: The user creating the experiment metadata is also reporter and
        #: and owner of the ticket.
        self.requester = requester
        #: The new experiment metadata.
        self.experiment_metadata = experiment_metadata
        #: The ticket wrapper storing the value applied to the ticket.
        self._ticket = None
コード例 #6
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
    def __init__(self, id_providing_entity, parent=None):
        """
        Constructor.

        :param id_providing_entity: The entity providing the ticket ID.
        :type id_providing_entity:
            :class:`thelma.entities.experiment.ExperimentMetadata` or
            :class:`thelma.entities.iso.IsoRequest`
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The experiment metadata or ISO request object the ticket belongs to.
        self.id_providing_entity = id_providing_entity
        #: The ticket ID.
        self._ticket_id = None
        #: The wrapper for the ticket update.
        self._update_wrapper = None
        #: A comment for the update. If the comment is not set, it will
        #: replaced by the :attr:`BASE_COMMENT`.
        self._comment = None
コード例 #7
0
ファイル: generation.py プロジェクト: helixyte/TheLMA
    def __init__(self, requester, iso_label, layout_number, parent=None):
        """
        Constructor.

        :param requester: The user who will be owner and reporter of the ticket.
        :type requester: :class:`thelma.entities.user.User`
        :param str iso_label: The label of the ISO this ticket belongs to.
        :param int layout_number: References the serial number ID of the ISO
            (within the ISO request space).
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The user who will be owner and reporter of the ticket (corresponds
        #: the requester of the ISO request).
        self.requester = requester
        #: The label of the ISO this ticket belongs to.
        self.iso_label = iso_label
        #: References the library layout the ISO is created for.
        self.layout_number = layout_number
        #: The ticket wrapper storing the value applied to the ticket.
        self._ticket = None
コード例 #8
0
ファイル: tracreporting.py プロジェクト: papagr/TheLMA
    def __init__(self, executor, parent=None):
        """
        Constructor.

        :param executor: The executor tool (after run has been completed).
        :type executor: :class:`StockTransferWriterExecutor` subclass
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The tool that has conducted the execution.
        self.executor = executor
        #: The executed stock transfer worklists (for reporting).
        self._executed_stock_worklists = None
        #: The stream for the log file.
        self.__log_file_stream = None
        #: The attachment for the ticket (for the log file).
        self._log_file_attachment = None
        #: The completed ticket comment.
        self._comment = None
        #: The ticket number.
        self._ticket_number = None
コード例 #9
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
    def __init__(self, requester, iso_label, layout_number, parent=None):
        """
        Constructor.

        :param requester: The user who will be owner and reporter of the ticket.
        :type requester: :class:`thelma.entities.user.User`
        :param str iso_label: The label of the ISO this ticket belongs to.
        :param int layout_number: References the library layout the ISO is
            created for.
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The user who will be owner and reporter of the ticket (corresponds
        #: the requester of the ISO request).
        self.requester = requester
        #: The label of the ISO this ticket belongs to.
        self.iso_label = iso_label
        #: References the library layout the ISO is created for.
        self.layout_number = layout_number
        #: The ticket wrapper storing the value applied to the ticket.
        self._ticket = None
コード例 #10
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
    def __init__(self, stock_sample_creation_iso, file_map, parent=None):
        """
        Constructor:

        :param stock_sample_creation_iso: The stock sample creation ISO the
          worklists belong to (also contains the ticket ID).
        :type stock_sample_creation_iso:
            :class:`thelma.entities.library.LibraryCreationIso`

        :param file_map: The streams for the worklists files mapped onto
            file names.
        :type file_map: :class:`dict`
        """
        BaseTracTool.__init__(self, parent=parent)

        #: The library creation ISO the worklists belong to (also contains
        #: the ticket ID).
        self.stock_sample_creation_iso = stock_sample_creation_iso
        #: The streams for the worklists files mapped onto file names.
        self.file_map = file_map
コード例 #11
0
ファイル: uploadreport.py プロジェクト: papagr/TheLMA
    def __init__(self,
                 generator,
                 experiment_metadata_link,
                 iso_request_link,
                 parent=None):
        """
        Constructor.

        :param generator: The generator that has conducted the upload.
        :type generator: :class:`ExperimentMetadataGenerator`
        :param str experiment_metadata_link: Link to the experiment metadata in
            TheLMA.
        :param str iso_request_link: Link to the ISO request in TheLMA.
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The generator that has conducted the upload.
        self.generator = generator
        #: Link to the experiment metadata in TheLMA.
        self.experiment_metadata_link = experiment_metadata_link
        #: Link to the ISO request in TheLMA.
        self.iso_request_link = iso_request_link
        #: The ID of the :class:`ExperimentMetadataType` for the uploaded
        #: metadata.
        self.__experiment_type_id = None
        #: The comment to be sent along with the files.
        self.__comment = None
        #: A dictionary containing the requested changes (key: attribute name,
        #: value: attribute value).
        self.__description = None
        #: The file stream of the uploaded excel data.
        self.__excel_stream = None
        #: The file stream for Info TXT file.
        self.__info_stream = None
        #: The file stream for the assignment file.
        self.__assign_stream = None
        #: The file stream for ISO plate overview file.
        self.__iso_stream = None
        #: The attachment to be uploaded.
        self.__attachments = None
コード例 #12
0
ファイル: uploadreport.py プロジェクト: helixyte/TheLMA
    def __init__(self, generator, experiment_metadata_link, iso_request_link,
                 parent=None):
        """
        Constructor.

        :param generator: The generator that has conducted the upload.
        :type generator: :class:`ExperimentMetadataGenerator`
        :param str experiment_metadata_link: Link to the experiment metadata in
            TheLMA.
        :param str iso_request_link: Link to the ISO request in TheLMA.
        """
        BaseTracTool.__init__(self, parent=parent)
        #: The generator that has conducted the upload.
        self.generator = generator
        #: Link to the experiment metadata in TheLMA.
        self.experiment_metadata_link = experiment_metadata_link
        #: Link to the ISO request in TheLMA.
        self.iso_request_link = iso_request_link
        #: The ID of the :class:`ExperimentMetadataType` for the uploaded
        #: metadata.
        self.__experiment_type_id = None
        #: The comment to be sent along with the files.
        self.__comment = None
        #: A dictionary containing the requested changes (key: attribute name,
        #: value: attribute value).
        self.__description = None
        #: The file stream of the uploaded excel data.
        self.__excel_stream = None
        #: The file stream for Info TXT file.
        self.__info_stream = None
        #: The file stream for the assignment file.
        self.__assign_stream = None
        #: The file stream for ISO plate overview file.
        self.__iso_stream = None
        #: The attachment to be uploaded.
        self.__attachments = None
コード例 #13
0
ファイル: generation.py プロジェクト: helixyte/TheLMA
 def reset(self):
     BaseTracTool.reset(self)
     self._ticket = None
コード例 #14
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
 def reset(self):
     BaseTracTool.reset(self)
     self._ticket = None
コード例 #15
0
ファイル: ticket.py プロジェクト: papagr/TheLMA
 def reset(self):
     """
     Resets all value except for the instantiation arguments.
     """
     BaseTracTool.reset(self)
     self._ticket = None