Perhaps just a variable that could be set to a function to perform on incoming/outgoing urls, that could be set in routes.py
URL_CASE = str.lower URL_CASE = str.upper URL_CASE = None # url is left as is. After working on a proof of concept, probably better just to have case-sensitive urls :) -Thadeus On Fri, Oct 16, 2009 at 10:49 AM, Jonathan Lundell <jlund...@pobox.com>wrote: > On Oct 16, 2009, at 8:41 AM, Thadeus Burgess wrote: > > I dislike capital letters in the URL, just because of case in-sensitive > websites. You type it in to the address bar, and you get a 404. > > http://tools.ietf.org/html/rfc3986 > > All though the document it talks about how URL/URI should be > case-insensitive. > > 6.2.2.1 is the most relevant. > > > But 6.2.2.1 says: > > The other generic syntax components are assumed to be case-sensitive unless > specifically defined otherwise by the scheme > > > Unfortunately, I think we're generally going to be constrained by the > underlying file system, at least for static URLs, unless we're willing to > force a particular case scheme on incoming URLs. > > With a dynamic system like web2py, you've got of course two different > interpretations of URL components, one by the framework itself, and the > other by the underlying file system. > > > That being said, as to the document, this is not required, but it is > suggested for uniformity and ease of access on the web. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---