Re: create_slug helper

2009-07-24 Thread Mike Orr
On Fri, Jul 24, 2009 at 10:36 AM, Isaac Csandl wrote: > > On Jun 18, 2:48 pm, Ben Bangert wrote: >> It would be handy to perhaps have those functions in WebHelpers, with >> an optional dependency on Unidecode to use it when available? > > +1 to that. It's in WebHelpers dev already. (Finally I h

Re: create_slug helper

2009-07-24 Thread Isaac Csandl
On Jun 18, 2:48 pm, Ben Bangert wrote: > It would be handy to perhaps have those functions in WebHelpers, with   > an optional dependency on Unidecode to use it when available? +1 to that. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: create_slug helper

2009-06-18 Thread Ben Bangert
On Jun 6, 2009, at 6:17 PM, Domen Kožar wrote: > Hey guy, today I threw together this little function helper that I > miss a lot in WebHelpers. > > unidecode module can be obtained from > http://code.zemanta.com/tsolc/unidecode/releases/Unidecode-0.04.1.tar.gz Funny, as I was porting my blog fro

Re: create_slug helper

2009-06-17 Thread iElectric
That's how I aproached this before but I hate it strips non ASCII chars. Good point, I changed code a bit: http://paste.pocoo.org/show/123671/ > oh neat! > > at first i thought this was for some sort of preview text, then > realized it was for a url friendly marker > > i do something a little dif

Re: create_slug helper

2009-06-17 Thread Jonathan Vanasco
oh neat! at first i thought this was for some sort of preview text, then realized it was for a url friendly marker i do something a little different. also, i'd check to make sure what you get the url chars from. last i checked, most things in python, perl, etc were written to rfc 1738 or 2396 b

Re: create_slug helper

2009-06-11 Thread iElectric
Unidecode maps every unicode character to a ASCII char. That's why it's so big. Slugs are used for url generation that is SEO friendly and self explainatory. Most cases are blog entries mapped to URLs. Having numerical ids in URLs to map resources has many cons. I could ask the unidecode author t

Re: create_slug helper

2009-06-11 Thread Mike Orr
On Sat, Jun 6, 2009 at 6:17 PM, Domen Kožar wrote: > > Hey guy, today I threw together this little function helper that I > miss a lot in WebHelpers. > > unidecode module can be obtained from > http://code.zemanta.com/tsolc/unidecode/releases/Unidecode-0.04.1.tar.gz > > > source: http://paste.poco

create_slug helper

2009-06-06 Thread Domen Kožar
Hey guy, today I threw together this little function helper that I miss a lot in WebHelpers. unidecode module can be obtained from http://code.zemanta.com/tsolc/unidecode/releases/Unidecode-0.04.1.tar.gz source: http://paste.pocoo.org/show/121523/ --~--~-~--~~~---~--