Re: [Django] #21912: Improve error message "The view ___ didn't return an HttpResponse object."

2014-02-15 Thread Django
#21912: Improve error message "The view ___ didn't return an HttpResponse 
object."
-+-
 Reporter:  brycenesbitt |Owner:  AeroNotix
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:
Component:  Core (Other) |  1.7-alpha-1
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"1150053b994a6de665db51a18a07b992bd6714f1"]:
 {{{
 #!CommitTicketReference repository=""
 revision="1150053b994a6de665db51a18a07b992bd6714f1"
 Fixed #21912 -- Improved error message if a view returns None.

 Thanks brycenesbitt for the report.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.43aa9b21b4db86836bb4cf7ef9af4f82%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21912: Improve error message "The view ___ didn't return an HttpResponse object."

2014-02-15 Thread Django
#21912: Improve error message "The view ___ didn't return an HttpResponse 
object."
-+-
 Reporter:  brycenesbitt |Owner:  AeroNotix
 Type:   |   Status:  assigned
  Cleanup/optimization   |  Version:
Component:  Core (Other) |  1.7-alpha-1
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by AeroNotix):

 * owner:  nobody => AeroNotix
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.f8df735a767d8aabfc5b5967bf81c7b0%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21912: Improve error message "The view ___ didn't return an HttpResponse object."

2014-01-30 Thread Django
#21912: Improve error message "The view ___ didn't return an HttpResponse 
object."
-+-
 Reporter:  brycenesbitt |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |  Version:
Component:  Core (Other) |  1.7-alpha-1
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by mjtamlyn):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.1b14c1842e7452f6d8c2d80e2d4bbc72%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #21912: Improve error message "The view ___ didn't return an HttpResponse object."

2014-01-30 Thread Django
#21912: Improve error message "The view ___ didn't return an HttpResponse 
object."
--+-
 Reporter:  brycenesbitt  |  Owner:  nobody
 Type:  Cleanup/optimization  | Status:  new
Component:  Core (Other)  |Version:  1.7-alpha-1
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+-
 The error message "The view _ didn't return an HttpResponse object." in
 base.py leaves
 open the question "What did it return"? This is a proposal to change the
 message to:

 "The view _ returned None: an HttpResponse object was expected."

 The code in question is:



 {{{
   # Complain if the view returned None (a common error).
 if response is None:
 if isinstance(callback, types.FunctionType):# FBV
 view_name = callback.__name__
 else:   # CBV
 view_name = callback.__class__.__name__ +
 '.__call__'
 raise ValueError("The view %s.%s didn't return an
 HttpResponse object."
  % (callback.__module__, view_name))
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.c1958689001dcc7e0beb18435112b08a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.