On Sun, Jul 6, 2008 at 10:18 AM, Jeremy Burton <[EMAIL PROTECTED]> wrote: > > url_for(x, y, z, anchor=1) generates //someurl/somedoc#1 > > url_for(x, y, z, anchor=2) generates //someurl/somedoc#2 > > etc > > but > > url_for(x, y, z, anchor=0) generates //someurl/somedoc?anchor=0 > > > Easy to work around but I'm interested to know if is this a bug or > correct behavior. I'm guessing that anchor=0 is the same as > anchor=None but I would have thought that this should result in no > anchor or anchor parameter.
It's using 'if anchor:' (routes/util.py line 226). This looks like a bug. You can probably work around it with 'anchor="0"'. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
