#4626: pass the context to extra_context functions
-----------------------------------+----------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  jacob        
     Status:  new                  |            Component:  Generic views
    Version:  SVN                  |           Resolution:               
   Keywords:                       |                Stage:  Unreviewed   
  Has_patch:  0                    |           Needs_docs:  0            
Needs_tests:  0                    |   Needs_better_patch:  0            
-----------------------------------+----------------------------------------
Changes (by mtredinnick):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Old description:

> 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

New description:

 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

Comment:

 (Fixed description formatting.)
 
 What file are you trying to change here? What is an example use-case?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4626#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to