It's not a bug. In pysaml2 there are classes by the name "Organization", "OrganizationName", and so on and it is the class names you see in the XML. These classes has attributes. The class Organization has the attributes organization_name, organization_display_name, … The values of the attribute organization are instances of the class Organization. You don't see the attribute names in the XML that is an internal Python representation and of course used in the code. This is the reason behind the discrepancy you found between "Organization" in the XML representation and "organization" in the code. Obviously there must be some behavior of PEER that wasn't what you suspected, that made you start looking at the code. Could you tell us what that was ?! -- Roland 13 feb 2012 kl. 21:31 skrev MaLa: > Public bug reported: > > On the "..../pysaml2-0.2.0-py2.6.egg/saml2/metadata.py" file I found > this: > > def name(self, entity_id): > > """ Find a name from the metadata about this entity id. > > The name is either the display name, the name or the url > > ,in that order, for the organization. > > > :param entityid: The Entity ID > > :return: A name > > """ > > try: > > org = self.entity[entity_id]["organization"] > > > But on the generated metadata we found this: > > > > XXXXX > > XXXXX > > xml:lang="it">XXX > > xml:lang="en">XXX > > xml:lang="it">https://www.xxxx.it/it > > xml:lang="en">https://www.xxxx.it/en > > > > > and "Organization" doesn't match with "organization" for the capital letter "O". > > This is a bug? Whitout the right replacement my Remote Installation of > PEER software doesn't work. > > Kind Regards, > > Marco Malavolti > > ** Affects: pysaml2 > Importance: Undecided > Status: New > > -- > You received this bug notification because you are a member of pysaml2 > developers, which is subscribed to pySAML2. > https://bugs.launchpad.net/bugs/931672 > > Title: > Bug on metadata.py? > > Status in Python implementation of SAML2: > New > > Bug description: > On the "..../pysaml2-0.2.0-py2.6.egg/saml2/metadata.py" file I found > this: > > def name(self, entity_id): > > """ Find a name from the metadata about this entity id. > > The name is either the display name, the name or the url > > ,in that order, for the organization. > > > :param entityid: The Entity ID > > :return: A name > > """ > > try: > > org = self.entity[entity_id]["organization"] > > > But on the generated metadata we found this: > > > > XXXXX > > XXXXX > > xml:lang="it">XXX > > xml:lang="en">XXX > > xml:lang="it">https://www.xxxx.it/it > > xml:lang="en">https://www.xxxx.it/en > > > > > and "Organization" doesn't match with "organization" for the capital letter "O". > > This is a bug? Whitout the right replacement my Remote Installation of > PEER software doesn't work. > > Kind Regards, > > Marco Malavolti > > To manage notifications about this bug go to: > https://bugs.launchpad.net/pysaml2/+bug/931672/+subscriptions