Re: [Django] #27367: Document behaviour when several urls have the same name

2017-02-11 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"c0916144502b2b9d75b75ce6b01148aaa3dcaf68" c0916144]:
 {{{
 #!CommitTicketReference repository=""
 revision="c0916144502b2b9d75b75ce6b01148aaa3dcaf68"
 [1.11.x] Fixed #27367 -- Doc'd and tested reversing of URLs with the same
 name.

 Thanks Reinout van Rees for contributing to the patch.

 Backport of 98bcc5d81bca578f3a5b4d47907ba4ac40446887 from master
 }}}

--
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/061.c5219dcefd91969dc004df4b8e701f65%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2017-02-11 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  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:"98bcc5d81bca578f3a5b4d47907ba4ac40446887" 98bcc5d8]:
 {{{
 #!CommitTicketReference repository=""
 revision="98bcc5d81bca578f3a5b4d47907ba4ac40446887"
 Fixed #27367 -- Doc'd and tested reversing of URLs with the same name.

 Thanks Reinout van Rees for contributing to the patch.
 }}}

--
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/061.535f4077fcd2510bc1f812e4c833bec3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2017-02-09 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * needs_better_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 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/061.b34616851b0f4356d113ff8fc6c9c1c9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-11 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * needs_better_patch:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 The content is looking good and I left some comments for further
 improvement.

--
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/061.e7769c9e1df31696f808e612de2cc890%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-07 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Reinout van Rees):

 * needs_better_patch:  1 => 0
 * stage:  Accepted => Ready for checkin


Comment:

 I'd say it is ready for checkin now! Nice to have some documentation for
 this. I was surprised that it was under-documented :-) Thanks, Robert!

 (My PR for the original PR has been merged).

--
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/061.4f65c6f5710c1e52e1b43d65d700e4cd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-05 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Reinout van Rees):

 * cc: reinout@… (added)


--
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/061.3dfe0ce044e4875fc8c319e3005df693%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-05 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Reinout van Rees):

 * needs_better_patch:  0 => 1


Comment:

 I've added a pull request to Robert's branch with my suggested changes in
 there: https://github.com/raiderrobert/django/pull/1

 (I've checked the "patch needs improvement" checkbox just for clarity,
 feel free to uncheck it if my changes aren't handy).

--
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/061.d2ee7e92d7964a27d65071ff31364a94%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-05 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Reinout van Rees):

 Oh, I retract my comment about it having to move somewhere else :-)

 There is no further page where there's some urls/reverse() explanation:
 the https://docs.djangoproject.com/en/1.10/topics/http/urls/ page is
 **huge**. So the text belongs there. (It might be worthwhile to split up
 the huge page at another point in time, but that's outside of the scope of
 this ticket).

--
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/061.90005aee46e5de437d813cf0850ddb17%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-11-05 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Reinout van Rees):

 I've [https://github.com/django/django/pull/7417#pullrequestreview-7311486
 reviewed the pull request]. The test looks handy.

 I'm not sure about the text. The text might have to be moved somewhere
 else.

--
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/061.e2973b30bdddcc577da279ed4944aa6c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-10-22 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * 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 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/061.1ea90ee126f3b4db7927bc78eef0737b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-10-22 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 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
-+-

Comment (by Robert Roskam):

 Not sure if the behavior was intended or not based on available
 documentation. Rather than making a change, I've put tests around how it
 functions and updated documentation. You can see my changes here:
 https://github.com/django/django/pull/7417/files

--
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/061.157c1c43730a812ed4e17a335bd53678%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-10-20 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 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
-+-

Comment (by Marten Kenbeek):

 You can use multiple urls with the same name. These urls will be tried in
 reverse order, so starting at the bottom of the list. All arguments passed
 to `reverse()` must be used by the pattern to be considered valid. Default
 arguments (passed as the `kwargs` parameter to `url()`) may be passed to
 `reverse()` as well, but if they are passed, the values must match the
 actual arguments to be considered a valid pattern. Consider these
 patterns:

 {{{
 url(r'^spam/$', 'myapp.views.index', name='myview'),  # 1
 url(r'^spam/(?P[\w-]+)/$', 'myapp.views.detail', name='myview'),
 # 2
 url(r'^spam/(?P[\w-]+)/(?P[\w-]+)/$', 'myapp.views.detail',
 name='myview'),  # 3
 url(r'^spam/(?P[\w-]+)/$', 'myapp.views.detail', kwargs={'eggs':
 'bar'}  name='myview'),  # 4
 }}}

 Both of these would successfully reverse pattern 4:

 {{{
 >>> reverse('myview', kwargs={'ham': 'foo'})
 '/spam/foo/'
 >>> reverse('myview', kwargs={'ham': 'foo', 'eggs': 'bar'})
 '/spam/foo/'
 }}}

 However, this would not match pattern 4, as the value of `eggs` does not
 match the original value of `eggs` passed to `url()`. Instead, it will
 fall through and match pattern 3:
 {{{
 >>> reverse('myview', kwargs={'ham': 'foo', 'eggs': 'baz'})
 '/spam/foo/baz/'
 }}}

--
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/061.61dcc29160cca705136829d14a646134%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-10-20 Thread Django
#27367: Document behaviour when several urls have the same name
-+-
 Reporter:  Christoph Schindler  |Owner:  Robert
 Type:   |  Roskam
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  master
 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 Robert Roskam):

 * status:  new => assigned
 * owner:  nobody => Robert Roskam


--
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/061.a619872a7ea2073c983dcb91e29c286b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27367: Document behaviour when several urls have the same name

2016-10-20 Thread Django
#27367: Document behaviour when several urls have the same name
--+
 Reporter:  Christoph Schindler   |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 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 Simon Charette):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * version:  1.10 => master
 * needs_docs:   => 0
 * type:  Uncategorized => Cleanup/optimization
 * 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/061.e21fc7b97bd7c0c22feb17905755c74a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #27367: Document behaviour when several urls have the same name

2016-10-19 Thread Django
#27367: Document behaviour when several urls have the same name
-+
 Reporter:  Christoph Schindler  |  Owner:  nobody
 Type:  Uncategorized| Status:  new
Component:  Documentation|Version:  1.10
 Severity:  Normal   |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0|  UI/UX:  0
-+
 Currently -- as far as i can tell -- it is no problem to give the same
 name to different urls and then reverse them:

 {{{
 url(r'^spam/$', 'myapp.views.index', name='myview'),
 url(r'^spam/(?P[\w-]+)/$', 'myapp.views.detail', name='myview'),
 url(r'^spam/(?P[\w-]+)/(?P[\w-]+)/$', 'myapp.views.detail',
 name='myview'),
 }}}

 {{{
 In [8]: reverse('myview', kwargs={'ham': 'foo', 'eggs': 'bar'})
 Out[8]: u'/spam/foo/bar/'

 In [9]: reverse('myview', kwargs={'ham': 'foo'})
 Out[9]: u'/spam/foo/'

 In [10]: reverse('myview')
 Out[10]: u'/spam/'
 }}}

 But this is not documented and it is not clear, whether this is supported
 or unsupported behaviour.

 It should either be stated clearly that url names should be unique /or/
 that it is possible to "overload" url patterns by giving them the same
 name when they have a different number of arguments.

--
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/046.71fe18991e8610a11a73ca9cc0ea667c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.