clients/irodsPublishCollection.py
def assignPID(self, pidClient, all = True):
        '''
        Creates epic PIDs for the collection and all its members.
        Returns a dictionary mapping from iRODS paths to PIDs.
        pidCredentials - instance of B2Handle EUDATHandleClient.
        '''
        pids = {}
        #TODO: mint real PIDs
        pid = str(uuid.uuid1())
        self.mdUpdate("PID", pid)
        pids[self.coll.name] = pid

        if all:
            for obj in self.coll.data_objects:
                pid = str(uuid.uuid1())
                obj.metadata.add("PID", pid)
                pids[obj.name] = pid

        return pids

        Creates epic PIDs for the collection and all its members.
        Returns a dictionary mapping from iRODS paths to PIDs.
        pidCredentials - instance of B2Handle EUDATHandleClient.
        
Creates epic PIDs for the collection and all its members.
Returns a dictionary mapping from iRODS paths to PIDs.
Creates epic PIDs for the collection and all its members . Returns a dictionary mapping from iRODS paths to PIDs .
def assignPID(self, pidClient, all = True):
        pids = {}
        pid = str(uuid.uuid1())
        self.mdUpdate("PID", pid)
        pids[self.coll.name] = pid
        if all:
            for obj in self.coll.data_objects:
                pid = str(uuid.uuid1())
                obj.metadata.add("PID", pid)
                pids[obj.name] = pid
        return pids
def assignPID ( self , pidClient , all = True ) : pids = { } pid = str ( uuid . uuid1 ( ) ) self . mdUpdate ( "PID" , pid ) pids [ self . coll . name ] = pid if all : for obj in self . coll . data_objects : pid = str ( uuid . uuid1 ( ) ) obj . metadata . add ( "PID" , pid ) pids [ obj . name ] = pid return pids
Creates epic PIDs for the collection and all its members.
Creates epic PIDs for the collection and all its members .
'''
        Creates epic PIDs for the collection and all its members.
        Returns a dictionary mapping from iRODS paths to PIDs.
        pidCredentials - instance of B2Handle EUDATHandleClient.
        ''' #TODO: mint real PIDs
self
pidClient
all