Example #1
0
def request_album_creation():
    email = request.form['email']
    photosCount = len(request.form)
    urls = []
    for index in range(0, photosCount - 1):
        key = 'photos_%s' % index
        urls.append(request.form[key])

    album = {'sent_to': email, 'photos': urls}
    request_album(album)
    return jsonify()
Example #2
0
def request_album_creation():
    email = request.form['email']
    photosCount = len(request.form)
    urls = []
    for index in range(0, photosCount - 1):
        key = 'photos_%s' % index
        urls.append(request.form[key])

    album = {'sent_to': email, 'photos': urls}
    request_album(album)
    return render_template('powyslaniu.html', uploadButtonName="send")
Example #3
0
def request_album_creation():
  email = request.form['email']
  photosCount = len(request.form)
  urls = []
  for index in range(0, photosCount-1):
    key = 'photos_%s' % index
    urls.append(request.form[key])

  album = {
    'sent_to': email,
    'photos': urls
  }
  request_album(album)
  return jsonify()
Example #4
0
def request_album_creation():
  email = request.form['email']
  photosCount = len(request.form)
  urls = []
  for index in range(0, photosCount-1):
    key = 'photos_%s' % index
    urls.append(request.form[key])

  album = {
    'sent_to': email,
    'photos': urls
  }
  request_album(album)
  return render_template('powyslaniu.html', uploadButtonName="send")