durusmail: quixote-users: medusa_http.py crash
medusa_http.py crash
2003-07-07
medusa_http.py crash
Mark Bucciarelli
2003-07-07
Strange, this form works fine using the BaseHTTPServer server.  Is it
possible that no-one has used medusa_http with form tokens?

Traceback (most recent call last):
  File "server.py", line 80, in continue_request
    output = self.publisher.process_request(qreq, environ)
  File "/usr/lib/python2.2/site-packages/quixote/publish.py", line
514, in process_request
    output = self.try_publish(request, env.get('PATH_INFO', ''))
  File "/usr/lib/python2.2/site-packages/quixote/publish.py", line
462, in try_publish
    output = object(request)
  File "realtime/ui.ptl", line 41, in edit
    return form.handle(request)
  File "/usr/lib/python2.2/site-packages/quixote/form/form.py", line
325, in handle
    return self.render(request, action_url)
  File "realtime/forms.ptl", line 145, in render
    quixote.form.Form.render(self, request, action_url)
  File "/usr/lib/python2.2/site-packages/quixote/form/form.py", line
150, in render
    enctype=self.enctype, method=self.method)
  File "/usr/lib/python2.2/site-packages/quixote/form/form.py", line
160, in _render_start
    r += self._render_hidden_widgets(request)
  File "/usr/lib/python2.2/site-packages/quixote/form/form.py", line
208, in _render_hidden_widgets
    r += widget.render(request)
  File "/usr/lib/python2.2/site-packages/quixote/form/form.py", line
17, in render
    self.value = get_session().create_form_token()
AttributeError: 'NoneType' object has no attribute 'create_form_token'

--
Mark Bucciarelli, www.hubcapconsulting.com
    He who receives an idea from me, receives instruction himself
without lessening mine; as he who lights his taper at mine receives
light without darkening me.   -- Thomas Jefferson


reply