1. 02 Sep, 2016 13 commits
    • Ayush Tiwari's avatar
      erp5_catalog: Update testBusinessTemplate according to changes in portal_catalog · 6c34465a
      Ayush Tiwari authored
      Also, migrate the catalog before running tests
      6c34465a
    • Ayush Tiwari's avatar
      erp5_catalog: Migration script to move catalog to new ERP5Catalog object. · 5ce72b86
      Ayush Tiwari authored
      What we expect during migration:
      1. Copy objects as well as properties from SQLCatalog to ERP5Catalog
      2. Migration of SQL Methods and Python Scripts as ERP5 objects
      3. Update migration with filter_dict for methods
      
      The migration function would now create portal_catalog based on
      'Catalog Tool' portal_type and after that it'll migrate the objects
      (catalog, SQL Method, Python Scripts) in it.
      
      Also, update BusinessTemplate fucntions according to changes made after migration
      5ce72b86
    • Ayush Tiwari's avatar
      erp5_catalog: Update erp5_core business template · 6902c508
      Ayush Tiwari authored
      Contains views, property sheets,  portal types concerning shifting of
      portal_catalog to an erp5 object.
      
      Portal Types:
      1. Catalog : ERP5 Catalog object (an ERP5 Folder), which earlier used to be OFS Folder.
      2. Catalog Tool: Portal Catalog where we can add and use multiple ERP5 catalogs.
      3. SQL Method: SQL methods with their views inside erp5.
      
      Property Sheet:
      1. Catalog
      2. CatalogTool
      3. SQLMethod
      	Containing properties for the various portal_types/classes respectively.
      4. CatalogFilter
      
      Also, filter_dict for erp5_catalog would now not be a Persistent Mapping
      object. The info inside filter_dict is being saved inside the SQL Method
      objects as their properties.
      
      Views:
      1. Catalog (View)
      2. CatalogTool(View, Properties, Filtered Items), Object Actions
      3. SQLMethod (View, Filter)
      4. Python Script (Filter)
      
      Extras:
      	- Dialog view for catalog before clear_catalog
      6902c508
    • Ayush Tiwari's avatar
      erp5_catalog: Update testCopySupport according to changes in portal_catalog · b41c87d3
      Ayush Tiwari authored
      Its better to change the tests where they need to call getpath function of
      portal_catalog to use portal_catalog.getpath instead of portal_catalog.getPath,
      as we have overridden the 'getPath' function for CatalogTool class due to change
      in inherited class.
      b41c87d3
    • Ayush Tiwari's avatar
      erp5_catalog: Rename reindexObject and getUrl methods to use them as new methods for CatalogTool. · 52f7da9d
      Ayush Tiwari authored
      - This step is needed due to the use of BaseTool as Base class for CatalogTool
        due to which there were conflict between getUrl and reindexObject from the Base and the one
        from the BaseTool.
      
      - Update CMFCatalogAware patch to handle case for catalog tool for 2 different meta_types
      52f7da9d
    • Ayush Tiwari's avatar
      erp5_catalog: New ERP5CatalogTool based on BaseTool from ERP5Type · f5a721cd
      Ayush Tiwari authored
      Also, update in BusinessTemplate installation with changes in portal_catalog
      
      Better to create new module for new Catalog Tool, as we don't
      want a running instance to fail just because it is updated by
      the new catalog code. This will maintain consistency in case
      user doen't want to migrate to new catalog/catalog_tool
      
      Most of the code for ERP5CatalogTool is copied from CatalogTool.
      f5a721cd
    • Ayush Tiwari's avatar
      erp5_catalog: New Catalog for ERP5. · 5131c32b
      Ayush Tiwari authored
      We try to move from using SQLCatalog to ERP5Catalog as the default Catalog inside
      ERP5. The major difference is use of Folder class as the base for Catalog from
      Products.ERP5Type.Core
      
      Significant changes:
      	-Add dtml form for creating ERP5Catalog object
      	-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 and _properties attributes for compatibilty
      5131c32b
    • Ayush Tiwari's avatar
      erp5_catalog: Add ERP5 SQL Method objects · 31677e94
      Ayush Tiwari authored
      31677e94
    • Romain Courteaud's avatar
    • Kazuhiko Shiozaki's avatar
      219ec8d3
    • Jérome Perrin's avatar
      ERP5Type: do not allow creating / removing subobjects while migrating to HBTree · a7d362c5
      Jérome Perrin authored
      because objects will be lost.
      
      At same time, simplify code a bit :
      
      - Just use _migration_in_progress attribute directly instead of a variable.
      - Set a default value on class, so that we do not have to getattr.
      - Do not use  aq_base, this is useless for attributes starting with _
      a7d362c5
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
  2. 01 Sep, 2016 3 commits
  3. 31 Aug, 2016 9 commits
  4. 30 Aug, 2016 3 commits
  5. 29 Aug, 2016 1 commit
  6. 24 Aug, 2016 4 commits
  7. 23 Aug, 2016 4 commits
  8. 22 Aug, 2016 3 commits