def InferRemoteApiUrl(self, appyaml):
    handlers = appyaml.handlers
    handler_suffix = 'remote_api/handler.py'
    app_id = appyaml.application
    for handler in handlers:
      if hasattr(handler, 'script') and handler.script:
        if handler.script.endswith(handler_suffix):
          server = self.options.server
          if server == 'appengine.google.com':
            return 'http://%s.appspot.com%s' % (app_id, handler.url)
          else:
            return 'http://%s%s' % (server, handler.url)
    return None
Hook for overriding on subclassed commands. Checks to make sure a
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/AppCfgApp.InferRemoteApiUrl--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py/CmdCpAttr.check_to_attr