Exemplo n.º 1
0
        def fset(self, name):
            self._uploaderName = name
            if name == "gsidcap":
                self._uploaderImp = uploaderDcap.uploaderDcap()
            elif name == "scp":
                self._uploaderImp = uploaderScp()
            elif name == "egiappdb":
                self._uploaderImp = uploaderEgiAppDb.uploaderEgiAppDb()
            elif name == "local":
                self._uploaderImp = uploaderLocal()
            else:
                self.log.error("Invalid upload protocol sellected '%s'" %
                               (name))
                self.log.info(
                    'Valid upload protocols are ["local","scp","gsidcap","egiappdb"]'
                )

                del (self._uploaderImp)
            if hasattr(self, '_uploaderImp'):
                self._uploaderImp.remotePrefix = self.remotePrefix
                self._uploaderImp.flags = self.flags
            else:
                errorMsg = str("Invalid upload protocol sellected:'%s'" %
                               (name))
                log.error(errorMsg)
                error = InputError("Invalid Value")
                raise error
Exemplo n.º 2
0
 def fset(self, name):
     self._uploader = name
     if name == "gsidcap":
         self._uploaderImp = uploaderDcap.uploaderDcap()
     elif name == "scp":
         self._uploaderImp = uploaderScp()
     elif name == "local":
         self._uploaderImp = uploaderLocal()
     else:
         self.log.error("Invalid upload protocol sellected '%s'" % (name))
         self.log.info('Valid upload protocols are ["local","scp","gsidcap"]')
         
         del(self._uploaderImp)
     if hasattr(self, '_uploaderImp'):
         self._uploaderImp.remotePrefix = self.remotePrefix
Exemplo n.º 3
0
 def fset(self, name):
     self._uploaderName = name
     if name == "gsidcap":
         self._uploaderImp = uploaderDcap.uploaderDcap()
     elif name == "scp":
         self._uploaderImp = uploaderScp()
     elif name == "egiappdb":
         self._uploaderImp = uploaderEgiAppDb.uploaderEgiAppDb()
     elif name == "local":
         self._uploaderImp = uploaderLocal()
     else:
         self.log.error("Invalid upload protocol sellected '%s'" % (name))
         self.log.info('Valid upload protocols are ["local","scp","gsidcap","egiappdb"]')
         
         del(self._uploaderImp)
     if hasattr(self, '_uploaderImp'):
         self._uploaderImp.remotePrefix = self.remotePrefix
         self._uploaderImp.flags = self.flags
     else:
         errorMsg = str("Invalid upload protocol sellected:'%s'" % (name))
         log.error(errorMsg)
         error = InputError("Invalid Value")
         raise error