On Tue, Oct 7, 2008 at 3:47 PM, Jorge Vargas <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 7, 2008 at 4:26 PM, Mike Orr <[EMAIL PROTECTED]> wrote: >> >> On Tue, Oct 7, 2008 at 7:58 AM, Jorge Vargas <[EMAIL PROTECTED]> wrote: >>> >>> Is this not implemented or I miss it somewhere? if it isn't >>> implemented I think that the rails version is good enough to be ported >>> to number.py >> >> It was left out for a few reasons: >> >> - There were multiple slightly different implementations (the other is >> in WebHelpers*.egg/unfinished/helpers.py written by James), and I >> wasn't sure which API was best. >> > oh my grep didn't catch that one as I have a released webhelpers in > this project. > >> - I wasn't sure if the function was universal enough and non-trivial >> enough to warrant being in WebHelpers. >> > true, but the same could be said of the other number_to_* functions, > for example number_to_phone is useless in my country but that doesn't > means it is useless everywhere.
number_to_phone was also dropped. I felt it was both too country-specific and application-specific. If a phone-number helper is needed, it should be something more general, though I don't know what. Something like strftime. Though I think North America is the only place with a consistent number of digits for the area code, prefix, and number. Other places I see codes and numbers of varying lengths in the same country. -- 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 -~----------~----~----~----~------~----~------~--~---
