peng3d/util/__init__.py
def register(self,name,force_id=None):
        """
        Registers a name to the registry.
        
        ``name`` is the name of the object and must be a string.
        
        ``force_id`` can be optionally set to override the automatic ID generation
        and force a specific ID.
        
        Note that using ``force_id`` is discouraged, since it may cause problems when ``reuse_ids`` is false.
        """
        with self.registry_lock:
            if force_id is None:
                new_id = self.genNewID()
            else:
                new_id = force_id
            self._data["reg"][new_id]=name
            return new_id
def register(self,name,force_id=None):
        """
        Registers a name to the registry.
        
        ``name`` is the name of the object and must be a string.
        
        ``force_id`` can be optionally set to override the automatic ID generation
        and force a specific ID.
        
        Note that using ``force_id`` is discouraged, since it may cause problems when ``reuse_ids`` is false.
        """
        with self.registry_lock:
            if force_id is None:
                new_id = self.genNewID()
            else:
                new_id = force_id
            self._data["reg"][new_id]=name
            return new_id
Registers a name to the registry.
        
        ``name`` is the name of the object and must be a string.
        
        ``force_id`` can be optionally set to override the automatic ID generation
        and force a specific ID.
        
        Note that using ``force_id`` is discouraged, since it may cause problems when ``reuse_ids`` is false.