findOPLocalIdentifier(service_element,
type_uris)
| source code
|
Find the OP-Local Identifier for this xrd:Service element.
This considers openid:Delegate to be a synonym for xrd:LocalID if both
OpenID 1.X and OpenID 2.0 types are present. If only OpenID 1.X is
present, it returns the value of openid:Delegate. If only OpenID 2.0 is
present, it returns the value of xrd:LocalID. If there is more than one
LocalID tag and the values are different, it raises a DiscoveryFailure.
This is also triggered when the xrd:LocalID and openid:Delegate tags are
different.
- Parameters:
service_element (ElementTree.Node) - The xrd:Service element
type_uris ([str]) - The xrd:Type values present in this service element. This
function could extract them, but higher level code needs to do
that anyway.
- Returns: str or unicode or NoneType
- The OP-Local Identifier for this service element, if one is
present, or None otherwise.
- Raises:
|