web/views/editviews.py
changeset 5223 6abd6e3599f4
parent 5037 7778a2bbdf9d
child 5423 e15abfdcce38
equal deleted inserted replaced
5216:4f4369e63f5e 5223:6abd6e3599f4
   111 
   111 
   112         def call(self):
   112         def call(self):
   113             text, data = captcha.captcha(self._cw.vreg.config['captcha-font-file'],
   113             text, data = captcha.captcha(self._cw.vreg.config['captcha-font-file'],
   114                                          self._cw.vreg.config['captcha-font-size'])
   114                                          self._cw.vreg.config['captcha-font-size'])
   115             key = self._cw.form.get('captchakey', 'captcha')
   115             key = self._cw.form.get('captchakey', 'captcha')
   116             self._cw.set_session_data(key, text)
   116             self._cw.session.data[key] = text
   117             self.w(data.read())
   117             self.w(data.read())