We could create a switch in routes that allows to change the URL validation regex. I would take a patch. I would not change the default though.
On Feb 13, 4:48 pm, Jonathan Lundell <jlund...@pobox.com> wrote: > On Feb 13, 2010, at 2:16 PM, DenesL wrote: > > > 1) Is that the only reason? > > So there is no other objection to have args with accented chars in > > them for example?. > > Foreign languages would benefit from having args without such > > restrictions. > > > By 'access filesystems' are you refering to 'static'? > > We could apply the restrictions only if the URL has c='static' or some > > other mechanism when it needs to access filesystems. > > > 2) And what about the first question: > > Shouldn't URL create only URLs that are usable with web2py? > > A lot of our systems are perfectly happy with spaces in filenames. It can be > a PITA from the command line, but not from the GUI or programatically. Seems > like an unnecessary restriction on web2py's part. > > > > > On 13 feb, 15:37, mdipierro <mdipie...@cs.depaul.edu> wrote: > >> because args can be used to access filesystem and having spaces in > >> there causes trouble. > > >> On Feb 13, 12:02 pm, DenesL <denes1...@yahoo.ca> wrote: > > >>> Shouldn't URL create only URLs that are usable with web2py? > > >>> Example: > >>> u=URL(r=request, args='Capítulo 1') > >>> produces an URL ending with /Cap%A1tulo%201 > >>> which generates an "Invalid request" when used. > > >>> And why are these characters not allowed in URLs? > > >>> Denes. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.