Example #1
0
def application_update(oauth_request, application_id, extension):

  Application_ = Application()
  Application_.current_user = oauth_request.user

  updated_application = Application_.application_update(application_id, request)

  if type(updated_application) is tuple:
    return updated_application

  arguments = {
    'the_content': updated_application,
    'extension': extension
  }

  return Application_.endpoint_response(**arguments)