Brian Beck wrote:

from django.utils.text import get_text_list

doesn't match the OP's specification for all lists, though:

>>> get_text_list(["one", "two", "three"], 'and')
'one, two and three'

but I guess you could always do

   if len(seq) >= 2:
       text = get_text_list(seq, ", and")
   else:
       text = get_text_list(seq, "and")

</F>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to