Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2744 closed defect (fixed)

context processors cant return None cause it not checked in RequestContext

Reported by: anonymous Owned by: Adrian Holovaty
Component: Template system Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

this just came up in irc when someone did return None instead of a dict

Attachments (1)

context-processor-returns-none.patch (470 bytes ) - added by anonymous 18 years ago.
my patch to fix it

Download all attachments as: .zip

Change History (3)

by anonymous, 18 years ago

my patch to fix it

comment:1 by James Bennett, 18 years ago

Hmm.

I'm not sure if we should do this, or if we should make it extra-clear in the documentation that context processors must return a dictionary -- even if it's an empty dictionary.

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3865]) Fixed #2744 -- Added 'Writing your own context processors' to docs/templates_python.txt

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