- 09 Nov, 2017 38 commits
-
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
bt5_prototype: Add export functions for PathTempalteItem and BusinessPackage as well as make createInstallationData more efficient
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
Problem: This is a workaround for components being unable to get registered during the tests. Explanation: After adding document component object, _p_oid is generated at the last step of commit hook. This leads to problem that _registry_dict for dynamic_class 'erp5.component.document' isn't getting updated with the _p_oid of the component created. This leads to failing of test because to validate object with same reference, the checkConsistency function checks in the _registry_dict for reference and _p_oid. Solution: Explicilty calling transaction.savepoint here generates the oid before validation, hence make it available for the registry_dict in time. But, this clearly is a workaround which is clearly not solving the real problem of why the _p_oid isn't being generated at the right step.
-
Ayush Tiwari authored
And, Patch changeObjectClass extension to remove useless attributes Copying __dict__ from one object to another brings us to situation where we don't have many objects which we don't need at all, for example, migrating objects with subclasses who were initially OFS objects and later an ERP5 object can lead to adding subobjects as attributes of the new object, which is completely undesirable. To handle this, it is important to delete the sub-objects as the attributes for those migrated classes. Old Catalog Tool didn't have portal_type attribute, so while migrating via synchronizeDynamicModule, after _bootstrap, we expect the tool to have a portal_type to finalize migration. This step is now being done only at the end of _bootstrap after we change the classes for portal_catalog and its sub-objects.
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
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 reindexObject from the Base and the one from the BaseTool.
-
Ayush Tiwari authored
ERP5CatalogTool class inherits from BaseTool. Significant addition/changes in: ------------------------------- ERP5CatalogTool: Add functions _isBootstrapRequired and _bootstrap Explicilty add manage option tabs in Catalog Tool BusinessTemplate: Update BusinessTemplate installation according to changes made in ERP5Catalog and Tool testCopySupport: 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 inheritence. ERP5Site: Create portal_catalog while setting up erp5site
-
Ayush Tiwari authored
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 addition/changes in ------------------------------- ERP5Catalog class: Inherit from Catalog class from Products.ZSQLCatalog.SQLCatalog instead of copy-pasting the whole code again. Monkey patch some property setters and getters to maintain consistency Override getCatalogMethodIds cause it uses global variable in SQLCatalog.Catalog Add FilterDict and Filter class to have consistency with `filter_dict` attribute of SQLCatalog BusinessTemplate: Update BusinessTemplate installation with updated filter_dict Also, use dynamic migration while installing the catalog method objects for bt5. This way we have SQL Methods migrated just after installation. Tests: Update tests according to changes in portal_catalog SQLCatalog, testZSQLCatalog: Cleanup for unusable functions
-
Ayush Tiwari authored
Create the SQLMethod class based on ZSQLMethods.SQL class and XMLObject.
-
- 08 Nov, 2017 2 commits
-
-
Julien Muchembled authored
inotifyx is has no support for Python 3 and it does not seem to be maintained anymore.
-
Tomáš Peterka authored
/reviewed-on nexedi/erp5!484
-