I found a workaround, maybe a fix? In regex_helper's get_quantifier function, starting at line #244:
while ch != '}': ... quant.append(ch) I tested this and it looks like quant gets appended every time, even when ch == '}'. So I added a simple: "if ch != '}'" before "quant.append(ch)", and I no longer get the error. On Sep 1, 3:55 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I wish I could find that. I've already been looking for anything like > that and keep coming up empty. None of the URL variables I'm using > include '}'. > > If it helps, here's the original traceback. > > File "/Library/Python/2.5/site-packages/django/template/debug.py", > line 71, in render_node > result = node.render(context) > File "/WebDev/django/template/defaulttags.py", line 373, in render > url = reverse(self.view_name, args=args, kwargs=kwargs) > File "/WebDev/django/core/urlresolvers.py", line 250, in reverse > *args, **kwargs))) > File "/WebDev/django/core/urlresolvers.py", line 226, in reverse > possibilities, pattern = self.reverse_dict.get(lookup_view, [(), > ()]) > File "/WebDev/django/core/urlresolvers.py", line 160, in > _get_reverse_dict > for name, (matches, pat) in pattern.reverse_dict.iteritems(): > File "/WebDev/django/core/urlresolvers.py", line 167, in > _get_reverse_dict > bits = normalize(p_pattern) > File "/WebDev/django/utils/regex_helper.py", line 147, in normalize > count, ch = get_quantifier(ch, pattern_iter) > File "/WebDev/django/utils/regex_helper.py", line 256, in > get_quantifier > return int(values[0]), ch > ValueError: invalid literal for int() with base 10: '3}' > > On Sep 1, 3:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > On Mon, 2008-09-01 at 15:16 -0700, Dave Lowe wrote: > > > I saw the note about revision 8760 introducing changes to reverse and > > > the url template tag, specifically that passing extra parameters won't > > > work. I haven't been able to find anywhere in my code where extra > > > parameters are being passed. However, after I update to 8760, I start > > > getting the following error: > > > > Caught an exception while rendering: invalid literal for int() with > > > base 10: '3}'. This error is only shown once after every dev server > > > restart. Subsequent page refreshes bring TemplateSyntaxErrors about > > > how {% url %} template tag calls aren't able to find any matches. > > > One of your URL patterns will include the string "3}". Please post that > > fragment. I suspect there might be a bug in the reverse parser for that > > case and I'd like to fix it. > > > Regards, > > Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---