1. 19 Aug, 2016 6 commits
    • Ayush Tiwari's avatar
      erp5_catalog: Update testCopySupport according to changes in portal_catalog · e5d18a57
      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.
      e5d18a57
    • Ayush Tiwari's avatar
      erp5_catalog: Rename reindexObject and getUrl methods to use them as new methods for CatalogTool. · 241b19d0
      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.
      
      - Rename reindexObject in CMFCatalogAware to be compatible to use in CatalogTool
        as we have renamed the reindexObject in CatalogTool
      241b19d0
    • Ayush Tiwari's avatar
      erp5_catalog: Inherit BaseTool class to include CatalogTool inside ERP5 · 5e0d8861
      Ayush Tiwari authored
      Some changes :
      1. Add title for catalog tool and filter meta_types only for CatalogTool object
      2. Solve the conflicts due to change in inheritence.
      
      Also, update in BusinessTemplate installation with changes in portal_catalog
      5e0d8861
    • Ayush Tiwari's avatar
      erp5_catalog: New Catalog for ERP5. · a106094e
      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
      a106094e
    • Ayush Tiwari's avatar
      erp5_catalog: Add ERP5 SQL Method objects · f6a5dd6c
      Ayush Tiwari authored
      f6a5dd6c
    • Yusei Tahara's avatar
  2. 18 Aug, 2016 5 commits
  3. 17 Aug, 2016 1 commit
  4. 11 Aug, 2016 1 commit
    • Rafael Monnerat's avatar
      PerformanceTests: Update to the new hardware · 5a7536ce
      Rafael Monnerat authored
        Performance tests were reconfigured on a new hardware, which is slower them
        the previous one. So this commit move the values to the new hardware based on
        the results after few days of result.
      5a7536ce
  5. 10 Aug, 2016 2 commits
    • Sebastien Robin's avatar
      order builder: improve stock optimisations to handle several nodes · b1798654
      Sebastien Robin authored
      This is very helpful when a warehouse is splitted into multiple
      stock points.
      
      Also avoid returning no stock optimisations if no date could be
      found in future.
      b1798654
    • Sebastien Robin's avatar
      ERP5Type.dynamic: show up failures in __getattribute__ of lazy_class · d032411c
      Sebastien Robin authored
      If for some reasons loadClass was not working, it was failing totally
      silently without any log. If there is any unexpected error in loadClass,
      this ended up for example having some tests failing with :
      
      RuntimeError: Malformed property definition <persistent broken
      erp5.portal_type.Acquired Property instance '\x00\x00\x00\x00\x00\x00\x12\xb5'>
      on /erp5/portal_property_sheets/SimpleItem
      
      While only this was displayed in logs :
      
      ERP5Type/dynamic/lazy_class.py", line 350, in loadClass
          class_definition = generatePortalTypeClass(site, portal_type)
      ...
      AttributeError: __of__
      
      Which was totally unrelated to the real problem.
      
      So a silent initial error was the source of later unrelated errors, making
      it very difficult to find the initial source of problem.
      
      So make sure we have logs as soon as we are not able to load a class.
      d032411c
  6. 09 Aug, 2016 8 commits
  7. 08 Aug, 2016 4 commits
  8. 05 Aug, 2016 5 commits
  9. 04 Aug, 2016 5 commits
  10. 03 Aug, 2016 1 commit
  11. 02 Aug, 2016 2 commits