   events:
     'click [name=authorize-button]': 'gapi_authorize'
     'click [name=upload-button]': 'upload'
-    'click [name=picker-button]': 'createPicker'
+    'click [name=picker-button]': 'showPicker'
   initialize: (options)->
     this.alertView = options.alertView # modelなどの特別以外は明示的に受け取る必要がある
     this.model_handler = options.modelHandler

GDriveModel = Backbone.Model.extend({
  initialize: ()->
    this.gdrive = new GDrive()
    this.access_token = null
    this.set('title', '')
    this.set('content', '')
    this.set("client_id", this.gdrive.CLIENT_ID)

  authorize: (callback, caller)->

    else
      caller.alertView.show("warning", "Fail GoogleDrive authorization")

  uploadFileAlert: (file, methodName, caller)->
    if !file.error
      caller.alertView.show("info", "Success " + methodName + "!")
    else
      caller.alertView.show("danger", "Fail " + methodName + "!")

  fetchFileAlert: (file, caller)->
    if !file.error
      caller.alertView.show("info", "Success " + "fetch" + "!")

  showPicker: ()->
    that = this
    client_id = that.model.get('client_id')
    access_token = that.model.get("access_token")
    if access_token
