def RouteAction(self, action_dict):
    action = self.request.get('action')
    if not action:
      self.ListActions(error=self.request.get('error', None))
    elif action not in action_dict:
      error = '%s is not a valid action.' % action
      self.ListActions(error=error)
    else:
      action_dict[action](self)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/datastore_admin/main.py/RouteByActionHandler.RouteAction/original