Пример #1
0
 def register(self, server, request_handler_class, origin):
     """bufferize server-handler associations with origin keyword."""
     if origin not in ORIGINS:
         LOG.error("rejecting unknown origin '%s'", origin)
         return
     LOG.debug("registering server %s & handler class %s for origin '%s'",
               server, request_handler_class, origin)
     self.origins[origin] = server, MetaServer.register(self, server,
                                                        request_handler_class)