- 18 Sep, 2013 20 commits
-
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Only prevent ZODB Components to be validated as the source code cannot be checked. This does not prevent BT to be upgraded, so this should be ok.
-
Arnaud Fontaine authored
In Live Test, setUpOnce() is not called, instead afterSetUp() should be used. Also, remove update of Local Roles as this is already done automatically upon bt5 installation since a481170a.
-
Arnaud Fontaine authored
ZODB Components: When executing code, module globals disappeared after a reset performed in another thread. This fixes failures in erp5_configurator* tests where BTs installed during the tests trigger a reset and globals (such as DateTime global import) were reset to None.
-
Arnaud Fontaine authored
runUnitTest: Test the full ports range as some tests require Zope to listen on a port (testShaDir...). With erp5testnode, many tests are running concurrently on the same machine and only 3 ports were randomly tested before continuing and thus not listening to any port. Moreover, checking the full range (500 ports) takes less than 1ms...
-
Arnaud Fontaine authored
Therefore, all Test Components are now ERP5TypeLiveTestCase. For backward compatibility sake, just modify Test Component class bases to ERP5TypeLiveTestCase, likewise runLiveTest. This means that tests ran through runUnitTest and from Live Tests ERP5 UI would behave exactly the same, contrary to the implementation before Test Components. Also, move a method called in one of ERP5TypeTypeMixin method from ERP5TypeTestCaseCommandLine.
-
Arnaud Fontaine authored
ZODB Components: Revert 'Allow to execute runUnitTest for bt5 Test Components' (a771dca4) to fix tests bootstrap. The new syntax to load ZODB Tests Components is: runUnitTest BT_TITLE:TEST_NAME That commit was too adhoc as it was relying upon filesystem to load Tests Components and was not behaving like any other Components (versions was not available and other Components were not importable). At the end, it would have meant that a Test Component ran through runUnitTest and Live Tests (in ERP5 itself) would have behaved differently, thus instead: 1/ Install BT_TITLE dependencies and its test dependencies (new bt property to specify bt to be installed only for tests on a fresh instance). 2/ The site is loaded. 3/ Load the test by importing it like any other Components.
-
Arnaud Fontaine authored
Avoid an extra step for developers by keeping the last Workflow History for Components by default.
-
Arnaud Fontaine authored
Considering erp5_configurator_ung depending on erp5_configurator which in turn depends on erp5_workflow, if erp5_workflow and erp5_configurator_ung are specifically added to the list of bt5 installed with depends, then erp5_workflow ended up being installed *after* erp5_configurator.
-
Arnaud Fontaine authored
Usage: runUnitTest test.VERSION.REFERENCE as exported on the filesystem. Also, add bt5 Test Components to tests being run through erp5testnode.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
ZODB Components: Component with the same version/reference as a validated one must not be able to be validated.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Only the source code and the last workflow history is actually relevant, so remove all Workflow History except the last one to minimize diffs. This adds a property to BusinessTemplate for generic behavior, overriden for ZODB Components to ignore all Workflows except component_validation_workflow.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Before, 'exec' was used but it is not safe as it executes the source code and also not so useful as it stops at the first error. So, use pylint instead: * Report errors and warnings (naming conventions could later be checked too). * Allow to jump directly in Ace Editor to the message line/column by clicking on it. * Define properly dynamic packages by setting __path__, otherwise pylint fails when a Component imports another one. Also, split up consistency checking done in validated/modified state and checking source code everytime the source code is modified: Source code error message was previously stored as a workflow variable, which didn't make any sense because user would only get error messages on Workflow transition, thus use existing Interaction Workflow to check source code and set newly defined error/warning properties everytime the source code is modified.
-
- 05 Sep, 2013 1 commit
-
-
Arnaud Fontaine authored
-
- 21 Aug, 2013 1 commit
-
-
Arnaud Fontaine authored
Selection: Do not set Selections if the new and store name differs instead of raising AssertionError.
-
- 19 Aug, 2013 7 commits
-
-
Arnaud Fontaine authored
When importing back ace.js containing a last line with whitespaces only, the last line was not imported, and thus the file could never been downloaded completely as its really size was less than the one on the File ZODB object.
-
Arnaud Fontaine authored
Tests may login/logout with different users. This fixes testDynamicClassGeneration.TestZodbTestComponent.testRunLiveTest.
-
Arnaud Fontaine authored
ZODB Components: Only Manager or Developer Role should be able to access Component Tools and Components.
-
Arnaud Fontaine authored
Otherwise, without passing the new height/width to resize() and without force, text is not visible when switching to maximize/fullscreen mode.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
- 09 Aug, 2013 3 commits
-
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
- 08 Aug, 2013 7 commits
-
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Since a29456bc, only import lock is used instead of aq_method_lock, dynamic modules locks and import lock. However, it was creating another deadlock: when the import lock is held in one thread (for instance when trying to perform migration to Portal Type as Classes and ZODB Property Sheets), and an object is loaded from ZODB, a request is sent to ZEO, and this blocks until another thread (asyncore) gets the ZEO reply and sends it back to the first thread. However, if the asyncore thread receives an Exception, it will tries to import its module and thus create a deadlock as the import lock is still held by the first thread.
-
Arnaud Fontaine authored
ZODB Components: No need to migrate Component Tool, only exist since Portal Type as Classes and ZODB Property Sheets.
-
Arnaud Fontaine authored
Because of recently added Component Tool, POSKeyError exception was raised when trying to load it from ZODB during migration of Portal Type classes and ZODB Property Sheets (PickleUpdater() in ERP5Site.migrateToPortalTypeClass), so make sure that there is a commit before loading anything from ZODB.
-
Arnaud Fontaine authored
This has several benefits: * No need to exit maximize/fullscreen modes to save. * The cursor position in the editor does not change. This implementation is hackish because it is too Component-specific, but until RenderJS is being used, there is no probably no better way.
-
Tatuya Kamada authored
How it happened while upgrading PathTemplateItem: 1. Tries to remove the existing broken object and succeeds removing 2. However it is a broken object so self.unindexCatalog() is never called and the old catalog is remaining 3. Add new object of PathTemplateItem and tries to reindex the object 4. Since old catalog is remaining, the catalog uid and object uid is different so catalogObjectList fails with FATAL error. The test is tests/BusinessTemplate.py#test_UpgradeBrokenObject.
-
Yusei Tahara authored
Workaround fix for translated_simulation_state_title. Use translated_simulation_state_title__ column when translated_simulation_state_title is sorted because translated_simulation_state_title is a scriptable key and it is not sortable.
-
- 12 Jul, 2013 1 commit
-
-
Arnaud Fontaine authored
-