- msg = "Delegating cred from owner %s to %s over %s:\n - Replaced attribute %s value '%s' with '%s'" % \
- (self.parent.gidCaller.get_urn(), self.gidCaller.get_urn(), self.gidObject.get_urn(), oldAttr.name, oldAttr.value, attr.value)
- logger.warn(msg)
- #raise CredentialNotVerifiable("Can't encode new valid delegated credential: %s" % msg)
-
- p_cred = doc.importNode(sdoc.getElementsByTagName("credential")[0], True)
+ msg = "Delegating cred from owner {} to {} over {}:\n"
+ "- Replaced attribute {} value '{}' with '{}'"\
+ .format(self.parent.gidCaller.get_urn(),
+ self.gidCaller.get_urn(),
+ self.gidObject.get_urn(),
+ oldAttr.name, oldAttr.value, attr.value)
+ logger.warning(msg)
+ # raise CredentialNotVerifiable(
+ # "Can't encode new valid delegated credential: {}"
+ # .format(msg))
+
+ p_cred = doc.importNode(
+ sdoc.getElementsByTagName("credential")[0], True)