Opened 16 years ago

Closed 16 years ago

Last modified 16 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


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 16 years ago.
my patch to fix it

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by anonymous

my patch to fix it

comment:1 Changed 16 years ago by James Bennett


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 Changed 16 years ago by Adrian Holovaty

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