home / django_tickets

tickets

1 row where "created" is on date 2008-08-19 and version = "1.0-beta" sorted by resolution

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: last_pulled_from_trac (date)

version 1 ✖

  • 1.0-beta · 1 ✖
id created changetime last_pulled_from_trac stage status component type severity version resolution ▼ summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8421 2008-08-19 15:58:28 2011-09-28 16:12:17 2022-03-06 03:42:13.294445 Unreviewed closed Forms     1.0-beta worksforme FileField traps error when uploading non-ascii filename Uploading non-ascii filename causes error by UnicodeEncodeError. If the form has two (or more) input fields for uploading files, and if you fill in either field by non-ascii filename and the other field empty, then an UnicodeEncodeError occurs when is_valid() is invoked. To the contrary, no error occurs when (1) the form has only one input field and fill it by non-ascii filename, (2) or the form has two (or more) input fields and fill them all by filenames. (3) or fill one or more input field(s) by ascii filename(s) I wonder why the error occurs only on condition that (4) the form has two (or more) input fields and one field is filled by non-ascii filename and the other field(s) is/are kept empty. [1] source code {{{ ---[ views.py ]--- class UploadForm(forms.Form): attach_1 = forms.FileField(required = False) attach_2 = forms.FileField(required = False) def test_upload(self,request): if request.method == 'POST': formup = UploadForm(request.POST,request.FILES) if formup.is_valid(): result = self.handle_uploaded_file(request.FILES) return HttpResponseRedirect('result.html') --- * the form page is encoded in UTF-8. [2] error message UnicodeEncodeError at /mysite1/debug/upload.html 'ascii' codec can't encode characters in position 37-39: ordinal not in range(128) Unicode error hint The string that could not be encoded/decoded was: NON-ASCII-UPLOAD-FILENAME [3] traceback message Traceback: File "/usr/lib/python25/Lib/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/mysite1/debug/views.py" in upload 70. return MyDebug.toolbox.test_upload(request) File "/mysite1/debug/util_mysite_debug.py" in test_upload 177. if formup.is_valid(): File "/usr/lib/python25/Lib/site-packages/django/forms/forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "/usr/lib/python25/Lib/site-packages/django/forms/forms.py" in _get_errors 111.… nobody mizutori FileField upload files 0 0 0 0 0 0

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE tickets (
        id int primary key,
        created datetime,
        changetime datetime,
        last_pulled_from_trac datetime,
        stage text,
        status text,
        component text,
        type text,
        severity text,
        version text,
        resolution text,
        summary text,
        description text,
        owner text,
        reporter text,
        keywords text,
        easy boolean,
        has_patch boolean,
        needs_better_patch boolean,
        needs_tests boolean,
        needs_docs boolean,
        ui_ux boolean
    );
Powered by Datasette · Queries took 957.953ms