code: def getDignities(self):
          
          info = self.getInfo()
          dignities = [dign for (dign, objID) in info.items()
                          if objID == self.obj.id]
          return dignities
docs: Returns the dignities belonging to this object.