You may want to take a quick look at ZCatalogs. They are for indexing ZODB objects. I may not be understanding what you are trying to do. I suspect that you really need to store everything in a database (MySQL/Postgres/etc) for maximal flexibility.
-Larry -- http://mail.python.org/mailman/listinfo/python-list