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 from a Rails-based Typo one, to Pylons  
+ MongoDB, I needed a slug generator. The Rails one used a package  
called stringex which is quite handy for other common slug  
conversions, and I posted Unideocde to Cheeseshop so its  
easy_installable. Here's my slugger (urlify), that is ported from the  
Ruby version, which also uses unidecode in addition to other common  
replacements for a slug:
http://bitbucket.org/bbangert/minger/src/tip/minger/lib/stringex.py

It would be handy to perhaps have those functions in WebHelpers, with  
an optional dependency on Unidecode to use it when available?

Cheers,
Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to