On Wed, Dec 23, 2009 at 6:13 PM, [email protected]
<[email protected]> wrote:
> Hi Mike,
>
> 1+ for distance_of_time_in_words function. I have rolled out my own
> long time back based on stackoverflow implementation.

I made a ticket for Andrey's post and will consider it.
http://bitbucket.org/bbangert/webhelpers/issue/17/alternate-distance_of_time_in_words

The current implementation is taken from the old rails helper without
much change.  pretty_date is more of a time_ago_in_words than a
distance_of_time_in_words, BTW.

> I have written utilities to convert to_ascii and to_utf8 like
> functions but still they are error prone :-(. When we crawl and
> collect information on job posting, we have some non-ascii chars which
> are not converting to ascii. But I don't know it make sense with
> webhelpers.

webhelpers.text is using unidecode if installed, and it seems to be
pretty slick.  It converts non-ASCII characters to visual equivalents.
 I thought about including unidecode in WebHelpers but the lookup
tables are too big.

> feedparser (www.feedparser.org/ ) does so much of useful
> tricks.
>
> However I don't use to_ascii, to_utf_8 with pylons. We are using
> Celery, a python based job scheduler (uses multi-processing and
> concurrency, message q). It has been written with Django orm. I am
> working on  porting to sqlalchemy.
>
> Some more things (not  sure whether they are really web helpers)
>
> 1. submission feed to twitter
> 2. submission to friendfeed.

These two would not really be webhelpers because they're tied to
specific services. You can put a recipe in the Pylons Cookbook.

> 3. Auto complete for form field

Hmm, WebHelpers has stopped being involved in Javascript, but this
would be generally useful so a small implementation might be OK.

-- 
Mike Orr <[email protected]>

--

You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.


Reply via email to