durusmail: quixote-users: demo/widgets error
demo/widgets error
2004-07-16
2004-07-18
demo/widgets error
Bowers, Brent
2004-07-16
Hi,

I am new to Python/Quixote/Medusa, and tonight I downloaded and installed
(on WinNT) the latest Python, Quixote and Medusa versions (2.4, 1.0 and
0.5.4/1.11, respectively).

Problem:

The Demo's 'widget' link returns the error shown below.  All other links
work as expected. I scanned over recent mailing list subjects and didn't see
anything that sounded like it related to this problem.

Questions:

Is there something wrong with my setup, or is this a bug in the Demo app?
Any ideas on how to fix it?

Thanks in advance.

Brent

--

[2004-07-15 22:06:26] exception caught
Traceback (most recent call last):
  File "c:\python24\Lib\site-packages\quixote\publish.py", line 522, in
process_request
    output = self.try_publish(request, env.get('PATH_INFO', ''))
  File "c:\python24\Lib\site-packages\quixote\publish.py", line 457, in
try_publish
    output = object(request)
  File "c:\python24\lib\site-packages\quixote\demo\widgets.ptl", line 42, in
widgets
    return process_widgets(request, widgets)
  File "c:\python24\lib\site-packages\quixote\demo\widgets.ptl", line 121,
in process_widgets
    form_time = float(widgets['time'].parse(request))
TypeError: float() argument must be a string or a number

Form:


Cookies:

Environment:
ACCEPT_ENCODING gzip, deflate
CONTENT_LENGTH  0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT     image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-us
HTTP_CONNECTION Keep-Alive
HTTP_COOKIE
HTTP_HOST       a015563
HTTP_REFERER    http://a015563
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
PATH_INFO       /widgets
QUERY_STRING
REMOTE_ADDR     170.68.14.101
REMOTE_PORT     2312
REQUEST_METHOD  GET
REQUEST_URI     /widgets
SCRIPT_FILENAME
SCRIPT_NAME
SERVER_NAME     a015563
SERVER_PORT     ('80',)
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Quixote/demo


NOTICE: This e-mail and any attachments to this e-mail may contain PRIVILEGED
and CONFIDENTIAL information and is intended only for the use of the specific
individual(s) to which it is addressed. It may contain information that is
privileged and confidential under state and federal law. This information may be
used or disclosed in accordance with law, and you may be subject to penalties
under law for improper use or further disclosure of the information in this
e-mail and its attachments. If you have received this e-mail in error, please
delete it and immediately notify the person named above by reply e-mail.
Thank you.
reply