def parameters(self): parameters = TemplateAssetParameters( self.theAssetName, self.theShortCode, self.theAssetDescription, self.theAssetSignificance, self.theType, self.theSurfaceType, self.theAccessRight, self.theSecurityProperties, self.theTags, self.theInterfaces) parameters.setId(self.theAssetId) return parameters
def update_template_asset(self, ta, name): found_ta = self.get_template_asset(name) taParams = TemplateAssetParameters(assetName=ta.theName, shortCode=ta.theShortCode, assetDesc=ta.theDescription, assetSig=ta.theSignificance, assetType=ta.theType, sType=ta.theSurfaceType, aRight=ta.theAccessRight, spValues=ta.theProperties, spRationale=ta.theRationale, tags=ta.theTags, ifs=ta.theInterfaces) taParams.setId(found_ta.theId) try: self.db_proxy.updateTemplateAsset(taParams) except ARMException as ex: self.close() raise ARMHTTPError(ex)
def update_template_asset(self,ta,name): found_ta = self.get_template_asset(name) taParams = TemplateAssetParameters( assetName=ta.theName, shortCode=ta.theShortCode, assetDesc=ta.theDescription, assetSig=ta.theSignificance, assetType=ta.theType, sType=ta.theSurfaceType, aRight=ta.theAccessRight, spValues=ta.theProperties, spRationale=ta.theRationale, tags=ta.theTags, ifs=ta.theInterfaces) taParams.setId(found_ta.theId) try: self.db_proxy.updateTemplateAsset(taParams) except ARMException as ex: self.close() raise ARMHTTPError(ex)
def parameters(self): parameters = TemplateAssetParameters(self.theAssetName,self.theShortCode,self.theAssetDescription,self.theAssetSignificance,self.theType,self.theSurfaceType,self.theAccessRight,self.theSecurityProperties,self.theTags,self.theInterfaces) parameters.setId(self.theAssetId) return parameters