On 4/2/07, Ron Bickers <[EMAIL PROTECTED]> wrote:
>
> On Apr 2, 8:10 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
>
> > This rule doesn't work:
> >
> > map.connect("glossary_term", "/glossary/:page#:term", controller="main",
> > action="glossary", page="index")
> >
> > sre_constants.error: bad character in group name.
>
> But this should:
>
> map.connect("glossary_term", "/glossary/:(page)#:(term)",
> controller="main",
> action="glossary", page="index")
>
> See 'Groupings' at http://routes.groovie.org/manual.html#groupings for
> details.
>
> I don' t know if this is a good solution to your problem, though.
I'm happy to concatenate the fragment separately if that's The Way, I
just wondered if Routes handled it. The '#' is not part of the final
component, it's a separate URL unit, so using groups for it sounds
kludgey. Although if Routes treats the '#' as an arbitrary static
string, maybe it's not that bad.
--
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
-~----------~----~----~----~------~----~------~--~---