(self, target)
Add a target to the service.
Add a target to the service.
Add a target to the service .
def mapTarget(self, target):
        """Add a target to the service."""
        key = target.__name__
        if self._targets.has_key(key):
            exist_target = self._targets.get(key)
            raise "target [%d] Already exists,\
            Conflict between the %s and %s"%(key,exist_target.__name__,target.__name__)
        self._targets[key] = target
def mapTarget ( self , target ) : key = target . __name__ if self . _targets . has_key ( key ) : exist_target = self . _targets . get ( key ) raise "target [%d] Already exists,\
            Conflict between the %s and %s" % ( key , exist_target . __name__ , target . __name__ ) self . _targets [ key ] = target