parameters: (self)
docstring: Request handler for POST operations.
docstring_summary: Request handler for POST operations.
docstring_tokens: Request handler for POST operations .
function: def get(self):
      """Request handler for POST operations."""
      dashboard_id = http_util.GetIntegerParam(self.request, fields.ID)
      row = dashboard_model.Dashboard.GetDashboard(dashboard_id)
  
      if (not row.canEdit()):
        msg = ('You are not an owner or writer for this dashboard, and '
               'cannot modify it.  Contact {owner} for access.'
               .format(owner=row.created_by.email()))
        self.RenderJson(
            data={error_fields.MESSAGE: msg},
            status=403)
        return
  
      try:
        title = http_util.GetStringParam(self.request, fields.TITLE)
        dashboard_model.Dashboard.RenameDashboard(dashboard_id, title)
      except (base.InitializeError, dashboard_model.InitializeError,
              http_util.ParameterError) as err:
        self.RenderJson(
            data={error_fields.MESSAGE: err.message}, status=400)
function_tokens: def get ( self ) : dashboard_id = http_util . GetIntegerParam ( self . request , fields . ID ) row = dashboard_model . Dashboard . GetDashboard ( dashboard_id ) if ( not row . canEdit ( ) ) : msg = ( 'You are not an owner or writer for this dashboard, and ' 'cannot modify it.  Contact {owner} for access.' . format ( owner = row . created_by . email ( ) ) ) self . RenderJson ( data = { error_fields . MESSAGE : msg } , status = 403 ) return try : title = http_util . GetStringParam ( self . request , fields . TITLE ) dashboard_model . Dashboard . RenameDashboard ( dashboard_id , title ) except ( base . InitializeError , dashboard_model . InitializeError , http_util . ParameterError ) as err : self . RenderJson ( data = { error_fields . MESSAGE : err . message } , status = 400 )