Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#435 closed defect (worksforme)

Exception thrown out when doing do_html2python

Reported by: Leo Shklovskii Owned by: Adrian Holovaty
Component: Core (Other) Version: 1.0
Severity: normal Keywords: html2python
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by Adrian Holovaty)

I create ad DataTimeField type filed in model file, and show it in a text box on web page. but when I invoke do_html2python before saving the changes to postgresql, a exception was thrown out "There's been an error:

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/handlers/", line 64, in get_response
    response = callback(request, **param_dict)

  File "/usr/lib/python2.3/site-packages/liveweb/bo/", line 68, in save

  File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/", line 98, in do_html2python
    new_data.setlist(field.field_name, [field.__class__.html2python(None)])

  File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/", line 654, in html2python
    time_tuple = time.strptime(data, '%H:%M:%S')

  File "/usr/lib/python2.3/", line 423, in strptime
    found = format_regex.match(data_string)

TypeError: expected string or buffer".

Seems that django look it as time field? And this only happend after updating django today(2005.8.30).

Change History (4)

comment:1 Changed 11 years ago by anonymous

Component: Admin interfaceCore framework

comment:2 Changed 11 years ago by Adrian Holovaty

Description: modified (diff)

Fixed formatting in description.

comment:3 Changed 11 years ago by Jacob

Resolution: worksforme
Status: newclosed

I can't reproduce this one which means it's likely a bug in your model; please post support questions like this to the django-users mailing list.

comment:4 Changed 10 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top