Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

get attribute return value #14

Open
BigbigY opened this issue Apr 24, 2019 · 1 comment · May be fixed by #17
Open

get attribute return value #14

BigbigY opened this issue Apr 24, 2019 · 1 comment · May be fixed by #17

Comments

@BigbigY
Copy link

BigbigY commented Apr 24, 2019

How to obtain multi-attribute value returned from the server

@skudi
Copy link

skudi commented Nov 8, 2019

I belive you can not. If xml returned by CAS/p3/serviceValidate contains more than one value, only the last one is availeble in cas_response.attributes, problem is here:

def _parse_cas_xml_data(cls, xml_node, namespace='cas:'):
[...]
            elif child.nodeType == child.ELEMENT_NODE:
                subresult = cls._parse_cas_xml_data(child)
                result.setdefault(tag_name, {}).update(subresult)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants