Re: [Django] #13984: template.loader.select_template should return template_name as well.

2013-03-23 Thread Django
#13984: template.loader.select_template should return template_name as well.
-+-
 Reporter:  DaNmarner|Owner:
 Type:  New feature  |  JoshStegmaier
Component:  Template system  |   Status:  closed
 Severity:  Normal   |  Version:  master
 Keywords:   |   Resolution:  duplicate
Has patch:  1| Triage Stage:  Design
  Needs tests:  0|  decision needed
Easy pickings:  0|  Needs documentation:  0
 |  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by aaugustin):

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


Comment:

 The pattern used to change the result type isn't elegant...

 It seems to me that #16096 provides the same information with a better
 API.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #13984: template.loader.select_template should return template_name as well.

2011-04-01 Thread Django
#13984: template.loader.select_template should return template_name as well.
-+-
   Reporter:  DaNmarner  |Owner:  JoshStegmaier
   Type:  New|   Status:  assigned
  feature|Component:  Template system
  Milestone: | Severity:  Normal
Version:  SVN| Keywords:
 Resolution: |Has patch:  1
   Triage Stage:  Design |  Needs tests:  0
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  0  |
-+-
Changes (by graham_king):

 * type:   => New feature
 * severity:   => Normal


-- 
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 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.



Re: [Django] #13984: template.loader.select_template should return template_name as well.

2010-07-27 Thread Django
#13984: template.loader.select_template should return template_name as well.
-+--
  Reporter:  DaNmarner   | Owner:  JoshStegmaier
Status:  assigned| Milestone:   
 Component:  Template system |   Version:  SVN  
Resolution:  |  Keywords:   
 Stage:  Design decision needed  | Has_patch:  1
Needs_docs:  0   |   Needs_tests:  0
Needs_better_patch:  0   |  
-+--
Changes (by JoshStegmaier):

  * stage:  Unreviewed => Design decision needed

-- 
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 post to this group, send email to django-upda...@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.



Re: [Django] #13984: template.loader.select_template should return template_name as well.

2010-07-26 Thread Django
#13984: template.loader.select_template should return template_name as well.
--+-
  Reporter:  DaNmarner| Owner:  JoshStegmaier
Status:  assigned | Milestone:   
 Component:  Template system  |   Version:  SVN  
Resolution:   |  Keywords:   
 Stage:  Unreviewed   | Has_patch:  1
Needs_docs:  0|   Needs_tests:  0
Needs_better_patch:  0|  
--+-
Changes (by JoshStegmaier):

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

Comment:

 In order to maintain backwards compatibility, it would probably be better
 if returning the template name was optional. I've attached a patch that
 would accomplish this.

-- 
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 post to this group, send email to django-upda...@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.



Re: [Django] #13984: template.loader.select_template should return template_name as well.

2010-07-23 Thread Django
#13984: template.loader.select_template should return template_name as well.
--+-
  Reporter:  DaNmarner| Owner:  nobody
Status:  new  | Milestone:
 Component:  Template system  |   Version:  SVN   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by DaNmarner):

  * needs_better_patch:  => 0
  * summary:  template.select_template should return template_name as well.
  => template.loader.select_template should
  return template_name as well.
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 The whole purpose of this function is to find out which possible location
 of a certain template is valid. It make sense to return the compiled
 template as well as its location.

 Here's a common use case:

 A template is found by select_template, however, this template extends an
 "base.html" whose is located in the same directory, which is unknown until
 runtime as well. So the extends tag fails.

 If select_template returns the location of the template it finds, then
 this info could be passed into an context and thus make the extends tag
 useful again.

-- 
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 post to this group, send email to django-upda...@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.