Advertisement
Guest User

Untitled

a guest
Jul 15th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. username = request.form['user']
  2. print username
  3. user = db_interaction.get_user_info(username)
  4. f = ["a","b", "c", "d"]
  5. i = 0
  6.  
  7. for field in user:
  8. print field
  9. #f[i] = ''.join(field)
  10. f[i] = str(field)
  11. print str(field) + " --- " + str(f[i])
  12. i = i+1
  13.  
  14. notif = Notification()
  15. uid=str(db_interaction.get_user_id(username))
  16. d=uid.replace('(', '')
  17. i=d.replace(')', '')
  18. id=i.replace(',', '')
  19. link = notif.get_subscribe_link(id)
  20. session['user'] = username
  21. session['password'] = f[1]
  22. session['email'] = f[2]
  23. session['id'] = f[3]
  24. session['link'] = link
  25.  
  26. return render_template('personal.html', user=username, password=f[1], email=f[2], id=f[3], link=link)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement