• Ayush Tiwari's avatar
    Products.ERP5Catalog: EPR5-ify catalog. · 2c44ec0c
    Ayush Tiwari authored and Ayush Tiwari's avatar Ayush Tiwari committed
    Move from SQLCatalog to ERP5Catalog as the default Catalog inside ERP5.
    The major difference is use of Products.ERP5Type.Core.Folder as Catalog
    base class.
    
    Significant changes:
    	-Inherit from Catalog class from Products.ZSQLCatalog.SQLCatalog instead of copy-pasting the whole code again.
    	-Add allowed_types for ERP5Catalog tool
    	-Monkey patch some property setters and getters to maintain consistency
    	-Update id and title for ERP5Catlog while class initialization
    	-Set declarative securities and solve some inheritance conflicts
    	-Add isRADContent for ERP5Catalog Class
     	-Solve inheritence conflict for _setPropValue function in ERP5Catalog class
    	-Add SQL Method portal_type in allowed_types for ERP5Catalog class
    	-Override getCatalogMethodIds cause it uses global variable in SQLCatalog.Catalog
    	-Redefine security declarations
    	-Add functions for object_actions of Catalog portal_type in ERP5Catalog object
    	-Add filter_dict attribute for compatibilty
    
    Also,
    - Update BusinessTemplate installation with updated filter_dict
    This removes the need to copy-patch or if-else on meta_type of catalog.
    Use dynamic migration while installing the catalog method objects for
    bt5.
    - Update tests according to changes in portal_catalog
    - Create FilterDict and Filter class which would be used to imitate the behaviour
    of filter_dict for Catalog.
    2c44ec0c