Re: [Django] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-28 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
---+
   Reporter:  danielr  | Owner:  nobody
 Status:  new  | Milestone:
  Component:  Template system  |   Version:  SVN   
 Resolution:   |  Keywords:
   Triage Stage:  Accepted | Has patch:  1 
Needs documentation:  0|   Needs tests:  0 
Patch needs improvement:  0|  
---+
Changes (by ramiro):

  * stage:  Design decision needed => 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 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] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-23 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
--+-
   Reporter:  danielr | Owner:  nobody
 Status:  new | Milestone:
  Component:  Template system |   Version:  SVN   
 Resolution:  |  Keywords:
   Triage Stage:  Design decision needed  | Has patch:  1 
Needs documentation:  0   |   Needs tests:  0 
Patch needs improvement:  0   |  
--+-
Changes (by ramiro):

  * stage:  Accepted => Design decision needed


Comment:

 We introduced that extra paragraph about that non-existent interaction of
 the  ''now'' tag with locale-dependent output formats in r14013 (fixing
 #13188) when moving the table of format specifiers from there to the
 ''date'' filter section.

 We need to decide if we want to change the behavior of the tag to match
 the documentation (in which case the proposed patch can be reviewed, I
 haven't yet) or simply decide such change change isn't worth or sensible
 and then treat this ticket as documentation bug.

-- 
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] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-10 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
---+
   Reporter:  danielr  | Owner:  nobody
 Status:  new  | Milestone:
  Component:  Template system  |   Version:  SVN   
 Resolution:   |  Keywords:
   Triage Stage:  Accepted | Has patch:  1 
Needs documentation:  0|   Needs tests:  0 
Patch needs improvement:  0|  
---+
Changes (by creecode@…):

  * has_patch:  0 => 1


-- 
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] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-10 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
---+
   Reporter:  danielr  | Owner:  nobody
 Status:  new  | Milestone:
  Component:  Template system  |   Version:  SVN   
 Resolution:   |  Keywords:
   Triage Stage:  Accepted | Has patch:  0 
Needs documentation:  0|   Needs tests:  0 
Patch needs improvement:  0|  
---+
Changes (by creecode@…):

 * cc: creecode@… (added)
  * has_patch:  1 => 0


-- 
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] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-10 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
---+
   Reporter:  danielr  | Owner:  nobody
 Status:  new  | Milestone:
  Component:  Template system  |   Version:  SVN   
 Resolution:   |  Keywords:
   Triage Stage:  Accepted | Has patch:  1 
Needs documentation:  0|   Needs tests:  0 
Patch needs improvement:  0|  
---+
Changes (by ersame):

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


Comment:

 The patch looks OK.

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



[Django] #15263: "now" templatetag doesn't accept locale formats, as docs claim

2011-02-10 Thread Django
#15263: "now" templatetag doesn't accept locale formats, as docs claim
-+--
 Reporter:  danielr  |  Owner:  nobody
   Status:  new  |  Milestone:
Component:  Template system  |Version:  SVN   
 Keywords:   |   Triage Stage:  Unreviewed
Has patch:  1|  
-+--
 The documentation on the `now` tag claims that it acts like the `date`
 filter in accepting "DATE_FORMAT" as a shortcut to the locale's current
 date format. However, this is not the case:

 {{{
 >>> t=Template("""{% now "DATE_FORMAT" %}""")
 >>> t.render(Context())
 u'WedPMGMTE_February+RFebPMGMT'
 }}}

 Clearly the string is being interpreted as a literal format, instead of
 being translated to the locale's date format.

 Attached patch fixes this by using the same logic as the `date` filter,
 including a regression test, and slightly tweaks the awkward wording in
 the docs.

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