#15368: Regression in Context
-------------------------------------------+--------------------------------
               Reporter:  cyberdelia       |         Owner:  SmileyChris       
                 Status:  new              |     Milestone:  1.3               
              Component:  Template system  |       Version:  1.2               
             Resolution:                   |      Keywords:  blocker regression
           Triage Stage:  Accepted         |     Has patch:  1                 
    Needs documentation:  0                |   Needs tests:  1                 
Patch needs improvement:  0                |  
-------------------------------------------+--------------------------------

Comment (by lukeplant):

 @SmileyChris - why do we need to use the class constructor to copy the
 instance? Could we not just implement `__copy__` differently on
 `RequestContext`?  In fact, do we need to implement `__copy__()` at all?
 You can simplify things quite a bit by implementing a `copy()` method
 which just uses `copy.copy()` with a few additions, and then using that
 copy method rather than `copy.copy()` on the Context object.

 I'll attached some tests for the regression involving `RequestContext`,
 and my proposed fix.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15368#comment:7>
Django <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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to