code: def _idForObject(self, defaultObject):
          
          identifier = self._allocateID()
          self._idsToObjects[identifier] = defaultObject
          return identifier
docs: Generate an opaque identifier which can be used to talk about
          C{defaultObject}.
  
          @rtype: C{int}