Hi,

If you need Python expert advice, the place to go is the Python group:
http://groups.google.com/group/comp.lang.python

Best,

Julien

On Jun 7, 11:31 am, Greg <[EMAIL PROTECTED]> wrote:
> Hello,
> I have the following list:
>
> [{'count': u'2', 'manu': <Manufacturer: Manu1>}, {'count': u'4',
> 'manu': <Manufacturer: Manu2>}, {'count': u'2', 'manu': <Manufacturer:
> Manu3>}, {'count': u'2', 'manu': <Manufacturer: Manu2>}]
>
> My current list currently contains four dictionaries.  They are:
>
> {'count': u'2', 'manu': <Manufacturer: Manu1>}
> {'count': u'4', 'manu': <Manufacturer: Manu2>}
> {'count': u'2', 'manu': <Manufacturer: Manu3>}
> {'count': u'2', 'manu': <Manufacturer: Manu2>}
>
> I need to create a list for each specific Manufacturer.  Since I have
> two dictionaries that have 'Manu2' as it's manufacturer.  I will need
> some code that will create the following from the list above:
>
> [{'count': u'2', 'manu': <Manufacturer: Manu1>}]
> [{'count': u'4', 'manu': <Manufacturer: Manu2>},{'count': u'2',
> 'manu': <Manufacturer: Manu2>}]
> [{'count': u'2', 'manu': <Manufacturer: Manu3>}]
>
> The reason for this is because I want to send one email to each
> manufacturer.  In this case I would send two emails to Manu2 because I
> have two dictionaries that have Manu2 as the manufacturer.  That is
> why I need to create a separate list for each manufacturer.
>
> Any help on on how best to do this would be greatly appreciated!
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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