1. 25 Jul, 2018 1 commit
  2. 19 Jul, 2018 1 commit
  3. 08 Apr, 2018 1 commit
  4. 17 Jul, 2017 1 commit
  5. 08 Mar, 2017 1 commit
    • Hans-Peter Deifel's avatar
      upload: Send correct form data in presence of checkboxes · 0ffecd03
      Hans-Peter Deifel authored
      tl;dr: Unchecked checkboxes usually don't send their value as
      parameter when the form is submitted. The ajax request in our upload
      code did just that which resulted in the value of checkboxes being
      wrongly interpreted.
      
      The default value of a checkbox is "on", even when it is off. The crux
      is that with standard HTML forms, this value will only be included in
      the form data if the checkbox is checked. The python end thus receives
      "on" for a checked checkbox and the empty string for an unchecked
      checkbox. It so happens that bool("on") == True and bool("") == False.
      
      Our JavaScript code that sends the form data for the upload page
      wrongly included the checkbox value, even if it was not checked. This
      resulted in the python end always receiving "on".
      
      See: http://stackoverflow.com/questions/33487360/formdata-and-checkboxes
      
      fixes #106
      0ffecd03
  6. 06 Feb, 2017 1 commit
  7. 23 Sep, 2016 6 commits
  8. 22 Sep, 2016 5 commits
  9. 21 Sep, 2016 5 commits
  10. 17 Aug, 2016 2 commits
  11. 15 Aug, 2016 2 commits
  12. 09 Aug, 2016 7 commits
  13. 28 Jan, 2016 1 commit
  14. 26 Jan, 2016 1 commit
  15. 02 Jan, 2016 1 commit
  16. 23 Jul, 2015 3 commits
  17. 21 Jul, 2015 1 commit