pacsretrieve/pacsretrieve.py
def retrieveMessageCopy_checkAndConstruct(self):
        """
        Construct a message that will ask the pfdcm to copy a dirtree
        from one location to another in its filesystem space.

        PRECONDITIONS
        * Successful retrieve call.

        POSTCONDITIONS
        * Return True/False accordingly
        """
    
        # pudb.set_trace()
        self.b_canRun           = False
        self.l_dmsg             = []
        self.lstr_outputPull    = []
        for d_copy in self.l_retrieveOK:
            str_seriesUID   = d_copy['retrieveStatus']['seriesUID']
            d_path          = self.retrieveMessageCopy_localPathDetermine(seriesUID = str_seriesUID)
            if d_path['status']:
                str_localDest   = d_path['path']
            else:
                str_localDest   = '%s-notemplate' % str_seriesUID
            str_localPath       = os.path.join(self.str_outputDir, str_localDest)
            self.lstr_outputPull.append(str_localPath)
            self.l_dmsg.append({
                'action':   'pullPath',
                'meta': {
                    'on': {
                        'series_uid': str_seriesUID
                    },
                    'to': {
                        'path':         str_localPath,
                        "createDir":    True
                    }                
                }
            })
        self.b_canRun   = True
        return self.b_canRun

        Construct a message that will ask the pfdcm to copy a dirtree
        from one location to another in its filesystem space.

        PRECONDITIONS
        * Successful retrieve call.

        POSTCONDITIONS
        * Return True/False accordingly
        
Construct a message that will ask the pfdcm to copy a dirtree
from one location to another in its filesystem space.

PRECONDITIONS
Successful retrieve call.

POSTCONDITIONS
Return True/False accordingly
Construct a message that will ask the pfdcm to copy a dirtree from one location to another in its filesystem space . PRECONDITIONS Successful retrieve call . POSTCONDITIONS Return True / False accordingly
def retrieveMessageCopy_checkAndConstruct(self):
        self.b_canRun           = False
        self.l_dmsg             = []
        self.lstr_outputPull    = []
        for d_copy in self.l_retrieveOK:
            str_seriesUID   = d_copy['retrieveStatus']['seriesUID']
            d_path          = self.retrieveMessageCopy_localPathDetermine(seriesUID = str_seriesUID)
            if d_path['status']:
                str_localDest   = d_path['path']
            else:
                str_localDest   = '%s-notemplate' % str_seriesUID
            str_localPath       = os.path.join(self.str_outputDir, str_localDest)
            self.lstr_outputPull.append(str_localPath)
            self.l_dmsg.append({
                'action':   'pullPath',
                'meta': {
                    'on': {
                        'series_uid': str_seriesUID
                    },
                    'to': {
                        'path':         str_localPath,
                        "createDir":    True
                    }                
                }
            })
        self.b_canRun   = True
        return self.b_canRun
def retrieveMessageCopy_checkAndConstruct ( self ) : self . b_canRun = False self . l_dmsg = [ ] self . lstr_outputPull = [ ] for d_copy in self . l_retrieveOK : str_seriesUID = d_copy [ 'retrieveStatus' ] [ 'seriesUID' ] d_path = self . retrieveMessageCopy_localPathDetermine ( seriesUID = str_seriesUID ) if d_path [ 'status' ] : str_localDest = d_path [ 'path' ] else : str_localDest = '%s-notemplate' % str_seriesUID str_localPath = os . path . join ( self . str_outputDir , str_localDest ) self . lstr_outputPull . append ( str_localPath ) self . l_dmsg . append ( { 'action' : 'pullPath' , 'meta' : { 'on' : { 'series_uid' : str_seriesUID } , 'to' : { 'path' : str_localPath , "createDir" : True } } } ) self . b_canRun = True return self . b_canRun
Construct a message that will ask the pfdcm to copy a dirtree
from one location to another in its filesystem space.
Construct a message that will ask the pfdcm to copy a dirtree from one location to another in its filesystem space .
"""
        Construct a message that will ask the pfdcm to copy a dirtree
        from one location to another in its filesystem space.

        PRECONDITIONS
        * Successful retrieve call.

        POSTCONDITIONS
        * Return True/False accordingly
        """ # pudb.set_trace()
self