comparison data/plugin/action/submitcsv.py @ 625:f4e63b74b969

FormSubmit: adapt to werkzeug MultiDict
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Mar 2013 17:47:30 +0100
parents bdebdc59b057
children f64779d5d500
comparison
equal deleted inserted replaced
624:bdebdc59b057 625:f4e63b74b969
33 33
34 self.delimiter = ';' 34 self.delimiter = ';'
35 self.targetFile = "" 35 self.targetFile = ""
36 36
37 if "targetfile" in request.form: 37 if "targetfile" in request.form:
38 self.targetFile = request.form.get("targetfile")[0] 38 self.targetFile = request.form.get("targetfile")
39 else: 39 else:
40 self.targetFile = u"list.csv" 40 self.targetFile = u"list.csv"
41 41
42 def sanitize(self): 42 def sanitize(self):
43 SubmitBase.sanitize(self) 43 SubmitBase.sanitize(self)