+
+ def set_authority(self, authority):
+ """
+ update the authority section of an existing urn
+ """
+ authority_hrn = self.get_authority_hrn()
+ if not authority_hrn.startswith(authority+"."):
+ self.hrn = authority + "." + self.hrn
+ self.hrn_to_urn()
+ self._normalize()
+