#17913: 'X' object has no attribute 'META' in RequestContext
---------------------------------+--------------------------------------
     Reporter:  breton           |                    Owner:  nobody
         Type:  Uncategorized    |                   Status:  closed
    Component:  Template system  |                  Version:  SVN
     Severity:  Normal           |               Resolution:  invalid
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by lukeplant):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 There is no Pythonic way to test for a `HttpRequest` object that fits with
 duck-typing. In fact, if you set TEMPLATE_CONTEXT_PROCESSORS to an empty
 list the above code will succeed, and this tolerance could be useful in
 some testing situations or other situations where you are not using a
 Django `HttpRequest` object. So there is nothing `RequestContext` can do
 here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17913#comment:3>
Django <https://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