Opened 17 years ago

Closed 17 years ago

#5387 closed (fixed)

method Form.is_multipart

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: murkt
Component: Forms Version: dev
Severity: Keywords: newforms, is_multipart, sprintsept14
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I would like to write this in a general template:

{% if form.is_multipart %}
{% else %} {% endif %}

I can do it with the attached patch.

Attachments (2)

form-is-multipart.diff (1.2 KB ) - added by Petr Marhoun <petr.marhoun@…> 17 years ago.
form-is-multipart-test-docs.diff (2.9 KB ) - added by murkt 17 years ago.
Patch with tests and documentation for rev 6268.

Download all attachments as: .zip

Change History (8)

by Petr Marhoun <petr.marhoun@…>, 17 years ago

Attachment: form-is-multipart.diff added

comment:1 by Petr Marhoun <petr.marhoun@…>, 17 years ago

Again:

{% if form.is_multipart %}
    <form action="." method="post" enctype="multipart/form-data">
{% else %}
    <form action="." method="post">
{% endif %}

comment:2 by flother, 17 years ago

Needs documentation: set

comment:3 by Russell Keith-Magee, 17 years ago

Needs tests: set
Triage Stage: UnreviewedAccepted

comment:4 by murkt, 17 years ago

Owner: changed from nobody to murkt
Status: newassigned

by murkt, 17 years ago

Patch with tests and documentation for rev 6268.

comment:5 by murkt, 17 years ago

Keywords: sprintsept14 added
Needs documentation: unset
Needs tests: unset

comment:6 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [6273]) Fixed #5387 -- Added is_multipart method to forms. Original patch from Petr Marhhoun. Tests and documentation from Murkt.

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