It works great, but I'm not getting "ł" character mapped using IS_SLUG.urlify(string). How do I make sure all special characters (e.g. latin ones) get mapped? Do I need to use a custom mapping dictionary or there's maybe an easier, built-in way?
On Saturday, August 17, 2013 12:48:17 AM UTC+2, lesssugar wrote: > > Oh, I wasn't aware that IS_SLUG.urlify() is a part of our great framework > :) I thought urlify is an external Python module. > > Anyway, found docs here: > http://www.web2py.com.ar/examples/global/vars/IS_SLUG/urlify > > Thanks! > > On Saturday, August 17, 2013 12:00:52 AM UTC+2, Massimo Di Pierro wrote: >> >> There is a IS_SLUG.urlify(....) which is probably better than Django's. >> ;-) >> >> On Friday, 16 August 2013 07:39:50 UTC-5, lesssugar wrote: >>> >>> I'm using the following module to convert my urls: >>> >>> >>> http://pydoc.net/Python/redsolutioncms.django-hex-storage/0.1.1/pinyin.urlify/ >>> >>> I have urlify.py (main function) and maps.py (chars mapping) in my >>> /modules. I test it in one of my views, simply trying to print the >>> urlify-ed value in the console: >>> >>> {{from urlify import urlify}} >>> {{print urlify(u"łźć ęćm")}} >>> >>> I get "aaa-aaa", so basically there's no mapping done and I have no idea >>> why. >>> >>> >>> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.