Re: [Django] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-03-07 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
-+-
   Reporter:  ungenio|Owner:  nobody
 Status:  closed |Milestone:
  Component:  Core   |  Version:  SVN
  framework  | Keywords:  urlresolvers reverse
 Resolution:  duplicate  |  namespace
   Triage Stage:  Accepted   |Has patch:  1
Needs documentation:  0  |  Needs tests:  0
Patch needs improvement:  0  |
-+-
Changes (by carljm):

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


Comment:

 I believe this is a duplicate of #11559.

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-17 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  reopened| Milestone:  
  
  Component:  Core framework  |   Version:  SVN 
  
 Resolution:  |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  1   
  
Needs documentation:  0   |   Needs tests:  0   
  
Patch needs improvement:  1   |  
--+-
Changes (by ungenio):

  * needs_tests:  1 => 0


Comment:

 Added a simple regression test. Will see if I can figure out how to
 resolve.

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-16 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  reopened| Milestone:  
  
  Component:  Core framework  |   Version:  SVN 
  
 Resolution:  |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  1   
  
Needs documentation:  0   |   Needs tests:  1   
  
Patch needs improvement:  1   |  
--+-
Changes (by ungenio):

  * needs_better_patch:  0 => 1


Comment:

 Hadn't run tests on my patch. They break.

 Will do some more digging and add a regression test for 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-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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-15 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  reopened| Milestone:  
  
  Component:  Core framework  |   Version:  SVN 
  
 Resolution:  |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  1   
  
Needs documentation:  0   |   Needs tests:  1   
  
Patch needs improvement:  0   |  
--+-
Changes (by lrekucki):

  * needs_tests:  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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-15 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  reopened| Milestone:  
  
  Component:  Core framework  |   Version:  SVN 
  
 Resolution:  |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  1   
  
Needs documentation:  0   |   Needs tests:  0   
  
Patch needs improvement:  0   |  
--+-
Changes (by ungenio):

  * has_patch:  0 => 1
  * version:  1.2-beta => SVN


Comment:

 Regex for namespaced RegexURLResolver wasn't getting processed.

 I believe I have found a solution. Please see 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 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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-13 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  reopened| Milestone:  
  
  Component:  Core framework  |   Version:  1.2-beta
  
 Resolution:  |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  0   
  
Needs documentation:  0   |   Needs tests:  0   
  
Patch needs improvement:  0   |  
--+-
Changes (by SmileyChris):

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


Comment:

 Perhaps you misread my example code. I didn't include anything after a
 '$'.

 And I understand how quantifiers work. The issue here is that a namespaced
 app isn't processing the regular expression question mark as expected.

 I haven't actually retested my code, but your reasoning for closing
 doesn't show that you did either so I'll reopen.

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2011-02-13 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
--+-
   Reporter:  ungenio | Owner:  nobody  
  
 Status:  closed  | Milestone:  
  
  Component:  Core framework  |   Version:  1.2-beta
  
 Resolution:  invalid |  Keywords:  urlresolvers 
reverse namespace
   Triage Stage:  Accepted| Has patch:  0   
  
Needs documentation:  0   |   Needs tests:  0   
  
Patch needs improvement:  0   |  
--+-
Changes (by v1v3kn):

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


Comment:

 @SmileyChris

 This is not really a bug, this is due to the way the '?' quantifier works.

 '?' matches the character preceding it zero or one time(s).
 Eg: the regex pattern 'cows' matches both 'cow' and 'cows'.

 And as Alex said earlier, you can't include anything after a '$'.

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2010-02-23 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
-+--
  Reporter:  ungenio | Owner:  nobody   
 
Status:  reopened| Milestone:   
 
 Component:  Core framework  |   Version:  1.2-beta 
 
Resolution:  |  Keywords:  urlresolvers reverse 
namespace
 Stage:  Accepted| Has_patch:  0
 
Needs_docs:  0   |   Needs_tests:  0
 
Needs_better_patch:  0   |  
-+--
Comment (by SmileyChris):

 Normal:
 {{{
 #!python
 incpatterns = patterns('',
 url(r'^$', 'views.front', name='index'),
 )
 urlpatterns = patterns('views',
 (r'test?/', include(incpatterns)),
 )

 >>> reverse('index')
 '/tes/
 }}}

 Namespaced:
 {{{
 #!python
 incpatterns = patterns('',
 url(r'^$', 'views.front', name='index'),
 )
 urlpatterns = patterns('views',
 (r'test?/', include(incpatterns, namespace='myapp')),
 )

 >>> reverse('myapp:index')
 '/test?/
 }}}

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2010-02-23 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
-+--
  Reporter:  ungenio | Owner:  nobody   
 
Status:  reopened| Milestone:   
 
 Component:  Core framework  |   Version:  1.2-beta 
 
Resolution:  |  Keywords:  urlresolvers reverse 
namespace
 Stage:  Accepted| Has_patch:  0
 
Needs_docs:  0   |   Needs_tests:  0
 
Needs_better_patch:  0   |  
-+--
Changes (by SmileyChris):

  * status:  closed => reopened
  * resolution:  invalid =>
  * stage:  Unreviewed => Accepted

Comment:

 No, there's definitely something fishy going on.

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2010-02-23 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
-+--
  Reporter:  ungenio | Owner:  nobody   
 
Status:  closed  | Milestone:   
 
 Component:  Core framework  |   Version:  1.2-beta 
 
Resolution:  invalid |  Keywords:  urlresolvers reverse 
namespace
 Stage:  Unreviewed  | Has_patch:  0
 
Needs_docs:  0   |   Needs_tests:  0
 
Needs_better_patch:  0   |  
-+--
Comment (by ungenio):

 I figured as much, but was confused by it working when a namespace wasn't
 specified.

 Thanks!

-- 
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] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2010-02-23 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
-+--
  Reporter:  ungenio | Owner:  nobody   
 
Status:  closed  | Milestone:   
 
 Component:  Core framework  |   Version:  1.2-beta 
 
Resolution:  invalid |  Keywords:  urlresolvers reverse 
namespace
 Stage:  Unreviewed  | Has_patch:  0
 
Needs_docs:  0   |   Needs_tests:  0
 
Needs_better_patch:  0   |  
-+--
Changes (by Alex):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Your resolver is broken, you can't include at something ending with a $.

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



[Django] #12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$'

2010-02-23 Thread Django
#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
+---
 Reporter:  ungenio |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Core framework  | Version:  1.2-beta  
 Keywords:  urlresolvers reverse namespace  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 In project urls.py:

 {{{
 incpatterns = patterns('',
 url(r'^$', myapp.views.index, name='index'),
 )
 urlpatterns = patterns('',
 (r'^$', include(incpatterns, namespace='myapp')),
 )
 }}}

 {{{
 >>> reverse('myapp:index')
 '/$'
 }}}

 It correctly returns '/' if the included pattern isn't namespaced.

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