def update_object(self, edoc, name): edParams = ExternalDocumentParameters(edName=edoc.theName, edVersion=edoc.theVersion, edDate=edoc.thePublicationDate, edAuths=edoc.theAuthors, edDesc=edoc.theDescription) try: edId = self.db_proxy.getDimensionId(name, 'external_document') edParams.setId(edId) self.db_proxy.updateExternalDocument(edParams) except ARMException as ex: self.close() raise ARMHTTPError(ex)
def update_external_document(self, edoc, name): found_edoc = self.get_external_document(name) edParams = ExternalDocumentParameters(edName=edoc.theName, edVersion=edoc.theVersion, edDate=edoc.thePublicationDate, edAuths=edoc.theAuthors, edDesc=edoc.theDescription) edParams.setId(found_edoc.theId) try: self.db_proxy.updateExternalDocument(edParams) except ARMException as ex: self.close() raise ARMHTTPError(ex)
def update_external_document(self,edoc,name): edParams = ExternalDocumentParameters( edName=edoc.theName, edVersion=edoc.theVersion, edDate=edoc.thePublicationDate, edAuths=edoc.theAuthors, edDesc=edoc.theDescription) try: edId = self.db_proxy.getDimensionId(name,'external_document') edParams.setId(edId) self.db_proxy.updateExternalDocument(edParams) except ARMException as ex: self.close() raise ARMHTTPError(ex)
def parameters(self): parameters = ExternalDocumentParameters(self.theName, self.theVersion, self.theDate, self.theAuthors, self.theDescription) parameters.setId(self.theId) return parameters
def parameters(self): parameters = ExternalDocumentParameters(self.theName,self.theVersion,self.theDate,self.theAuthors,self.theDescription) parameters.setId(self.theId) return parameters