parameters: (self)
docstring: Create a new image.
docstring_summary: Create a new image.
docstring_tokens: Create a new image .
function: def post(self):
      """
      Create a new image.
      """
      image_data = self.request.get('image')
      permission_key = ''.join(random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for x in range(36))  
  
      image_model = MemematorImage()
      image_model.image = self.decode_image(image_data)
      image_model.permission_key = permission_key
      image_model.put()
  
      self.response.headers['Content-type'] = 'application/json'
      self.response.out.write('{ "id" : "%s", "permissionKey": "%s"  }' % (image_model.key().id(), permission_key))
function_tokens: def post ( self ) : image_data = self . request . get ( 'image' ) permission_key = '' . join ( random . choice ( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ) for x in range ( 36 ) ) image_model = MemematorImage ( ) image_model . image = self . decode_image ( image_data ) image_model . permission_key = permission_key image_model . put ( ) self . response . headers [ 'Content-type' ] = 'application/json' self . response . out . write ( '{ "id" : "%s", "permissionKey": "%s"  }' % ( image_model . key ( ) . id ( ) , permission_key ) )