For anyone who searches this group, i've just figured that i needed to use
ur'^fichier_numerique/(?P<object_id>\d+)/(?P<chemin>'+REGEX_FICHIER > +')/$' so the regex is a unicode object. I've also noticed that parentheses weren't working anymore (in 0.96 i could match opening but not closing). Last but not least, it seems my arguments now arrive url-quoted (ie %20 instead of space) to my view while this used not to be the case in 0.96. Maybe I was doing something wrong back then (?). Philippe On Oct 27, 5:37 pm, Philippe Raoult <[EMAIL PROTECTED]> wrote: > Thanks for the tip, it indeed worked. I'm now trying to figure out how > to use exotic characters in my url regex and so far I'm failing. > > My 0.96 url file looked like this: > > accents = "áâàäãéêèëíîìïóôòöõúûùüçøñÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇØÑ¡¿" > REGEX_FICHIER = "[\w/\-+_,@!%'°&\.#$\[\](} "+accents+']*' > > (r'^fichier_numerique/(?P<object_id>\d+)/(?P<chemin>'+REGEX_FICHIER > +')/$', 'vue_fichier_dossier'), > > So far it worked in 0.96, so now i'm just adding 'u' in front of > accents and REGEX_FICHIER strings but no luck: > NoReverseMatch: Reverse for '<function vue_fichier_dossier at > 0x113bed8>' with arguments '(56650L, u'blah/blih')' and keyword > arguments '{}' not found. > > Has anyone managed to use accented caracters in urls with 1.0.X ? > > Regards, > Philippe > > On Oct 18, 1:58 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > > > On Sat, Oct 18, 2008 at 6:10 PM, Philippe Raoult > > > <[EMAIL PROTECTED]> wrote: > > > > Hello all, > > > > I've startingportingmy little app (20k loc) from 0.96 to 1.0 and > > > I've been hitting a wall of reverse/urlerrors. I haven't seen > > > anything in theportingwiki page so I'm wondering if anyone has > > > already encountered similar issues ? > > > > I'm seeing stuff like: Reverse for '<function vue_recap_dossier at > > > 0x1ae55f0>' with arguments '(34L,)' and keyword arguments '{}' not > > > found. > > > Obviously since the reverse has a function object it imported it > > > correctly (I provided the view path as a reverse argument). Is there > > > any change in theurlpatterns not mentionned in theportingwiki page > > > and worth knowing about ? > > > > I'm going to be fiddling with this a bit, if I don't figure it out > > > I'll post a detailedurlfile... > > > It sounds like you may have found a version of ticket #9038. This > > ticket was fixed in changeset [9087]; if you use a current trunk > > checkout (or a checkout from the v1.0.X branch), the issue should be > > resolved. > > > Yours, > > Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---