WIP: Multiple catalog
This work is on top of erp5_catalog
branch, so we are using erp5 catalog everywhere in this case.
Multiple Catalog:
- Site Manager creates multiple catalog using different connections.
- Each
erp5_catalog
comes with apredicate
object. - Extra attributes for
catalog
objects:- Validation state : Cataloging would be done only in validated catalogs.
- Predicate: Predicate would be checked on each object to be cataloged.
- Every user would have preference to chose the
preferred_catalog
and that one would be used as the result ofgetSQLCatalog
, without changingdefault_erp5_catalog_id
Problems:
- Circular dependency while looking for
preferred_catalog
. For now, this has been taken care of by usingdefault_erp5_catalog_id
for the result ofgetSQLCatalog
in case the user is manager. So, this way atleast we have all user and preferences cataloged at one place.