def __register_class(self, parsed_config):
    methods = parsed_config.get('methods')
    if not methods:
      return True




    service_class = None
    for method in methods.itervalues():
      rosy_method = method.get('rosyMethod')
      if rosy_method and '.' in rosy_method:
        method_class = rosy_method.split('.', 1)[0]
        if service_class is None:
          service_class = method_class
        elif service_class != method_class:
          raise api_config.ApiConfigurationError(
              'SPI registered with multiple classes within one '
              'configuration (%s and %s).  Each call to register_spi should '
              'only contain the methods from a single class.  Call '
              'repeatedly for multiple classes.' % (service_class,
                                                    method_class))

    if service_class is not None:
      if service_class in self.__registered_classes:

        return False
      self.__registered_classes.add(service_class)
    return True
Bind a callback to be called after event is run.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/endpoints/api_backend_service.py/ApiConfigRegistry.__register_class--crossover with--dataset/ETHPy150Open richrd/suplemon/suplemon/suplemon_module.py/Module.bind_event_after