Пример #1
0
 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
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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