Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#10586 closed (fixed)

@last_modified call condition(last_modified=callable), but condition expect last_modified_func

Reported by: qoqenator Owned by: Malcolm Tredinnick
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


REV. 10115

In django.views.decorators.http:

def etag(callable):
    return condition(etag=callable)

def last_modified(callable):
    return condition(last_modified=callable)


def condition(etag_func=None, last_modified_func=None):

Attachments (1)

10586.patch (540 bytes) - added by qoqenator 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by qoqenator

Attachment: 10586.patch added

comment:1 Changed 14 years ago by Malcolm Tredinnick

Owner: changed from nobody to Malcolm Tredinnick
Status: newassigned
Triage Stage: UnreviewedAccepted

I'm actually thinking I might just get rid of those two decorators and only keep conditional(), since they're not really such a huge shortcut and require lots of extra documentation.

Still, one way or the other, this needs fixing up. Thanks for noticing.

comment:2 Changed 14 years ago by Malcolm Tredinnick

milestone: 1.1

comment:3 Changed 14 years ago by Malcolm Tredinnick

Resolution: fixed
Status: assignedclosed

(In [10134]) A bunch of improvements for conditional HTTP processing.

Fixed some typos in the code (fixed #10586). Added more tests. Made the
tests compatible with Python 2.3. Improved the documentation by putting
the good news and common use-case right up front.

comment:4 Changed 11 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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