parameters: (self)
docstring: Verifies that no two objects have the same ID.  Checks all descendants.
docstring_summary: Verifies that no two objects have the same ID.  Checks all descendants.
docstring_tokens: Verifies that no two objects have the same ID . Checks all descendants .
function: def EnsureNoIDCollisions(self):
      """Verifies that no two objects have the same ID.  Checks all descendants.
      """
  
      ids = {}
      descendants = self.Descendants()
      for descendant in descendants:
        if descendant.id in ids:
          other = ids[descendant.id]
          raise KeyError(
                'Duplicate ID %s, objects "%s" and "%s" in "%s"' % \
                (descendant.id, str(descendant._properties),
                 str(other._properties), self._properties['rootObject'].Name()))
        ids[descendant.id] = descendant
function_tokens: def EnsureNoIDCollisions ( self ) : ids = { } descendants = self . Descendants ( ) for descendant in descendants : if descendant . id in ids : other = ids [ descendant . id ] raise KeyError ( 'Duplicate ID %s, objects "%s" and "%s" in "%s"' % ( descendant . id , str ( descendant . _properties ) , str ( other . _properties ) , self . _properties [ 'rootObject' ] . Name ( ) ) ) ids [ descendant . id ] = descendant