Opened 17 years ago

Last modified 17 years ago

#4626 closed

pass the context to extra_context functions — at Version 1

Reported by: bennydaon@… Owned by: nobody
Component: Generic views Version: dev
Severity: Keywords:
Cc: sciyoshi@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Malcolm Tredinnick)

I found it helpful for extra_context functions to have access to the context.
The change is in line 80:

<        if callable(value):
<            c[key] = value()

>        if callable(value):
>            c[key] = value(c)

I'm not sure who decides on whether it should go to the version - it does changes the API

Change History (1)

comment:1 by Malcolm Tredinnick, 17 years ago

Description: modified (diff)

(Fixed description formatting.)

What file are you trying to change here? What is an example use-case?

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