Hi Mike,

1+ for distance_of_time_in_words function. I have rolled out my own
long time back based on stackoverflow implementation.

I like to have conversion from utc, other timestamps and get the
words.

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. 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.
3. Auto complete for form field

Regards,

Krish


On Dec 24, 5:44 am, Andrey Petrov <[email protected]> wrote:
> Hi Mike,
>
> My one request would be to have a more sensible version of
> webhelpers.date.distance_of_time_in_words helper.
>
> Namely, I like what John Resig did in Javascript, which I ported to
> Python:
>
> http://gist.github.com/240045(you're more than welcome to use it if
> you like).
>
> I submit that the current implementation is more granular and
> flexible, but the code that's required to run it is complex,
> overwhelming and hard to understand. I think this approach (which
> Django has a similar one for) covers more than 80% of the use cases in
> less than 20% of the complexity.
>
> I've always seen webhelpers as a relatively minimal and concise
> collection of tools that help cut that 80/20 utility/effort ratio. I
> think this addition or modification would be a good candidate.
>
> - shazow
>
> P.S.
> It's possible to do a wrapper to give this default behaviour on top of
> the current implementation but the underlying complexity of the code
> to achieve that seems overkill and makes me feel dirty.
>
> On Dec 23, 2:08 pm, Mike Orr <[email protected]> wrote:
>
> > On Wed, Dec 23, 2009 at 10:05 AM, [email protected]
>
> > <[email protected]> wrote:
> > > Hi Mike,
>
> > > Thanks for the release. I have been using django just for utility
> > > functions like urlify.
> > > Now I can remove that dependencies.
>
> > Are there any other generally useful functions you've been missing?
>
> > --
> > 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