Recommended data structure/ implementation

Mike D 42flicks at gmail.com
Wed Feb 13 02:34:43 EST 2008


I have a simple requirement: A user belongs to groups and groups contain
items.

Based on user/group I want to display items.
Based on user I want to display groups.

What would be the best method of implementing this? A dictionary of objects?

I'd usually just use a database but I feel it's quite unnessacary and its a
scenario I'd like to know the solution for.

Hints/ Tips/ Advice appreciated :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080213/0a356bcb/attachment.html>


More information about the Python-list mailing list