- 02 Sep, 2016 6 commits
-
-
Ayush Tiwari authored
This is required cause while running _activeSense for portal_alarm, we switch user to nobody so as to use system user, but at the same time in proces_timer in ActivityTool, we use the user of portal_catalog to invoke the activities. https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/Document/Alarm.py#L164 The problem comes when someone runs an alarm which create a new portal_catalog, which might not be having the required permission to invoke all the activites. So, its better to use unrestrictedMethod or maybe, super_user here.
-
Romain Courteaud authored
-
Kazuhiko Shiozaki authored
-
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 _
-
Romain Courteaud authored
-
Romain Courteaud authored
-
- 01 Sep, 2016 3 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Yusei Tahara authored
-
- 31 Aug, 2016 9 commits
-
-
Sebastien Robin authored
With previous algorithm, work was given to additional test nodes only when: - we were previously below the needed capacity - when another test node was dying Now, as soon as a new test node is added, we move work of overloaded test nodes to idle test nodes. We try to move only test suite using many test nodes to avoid having to wait for building time. This allows to have better distribution of the work with the idea to have more quickly test results. This will avoid cases where we have several testnodes assigned to no work at all. Finally, fixed distribution algorithm to avoid some unfair cases where a test suite might have more test node than another while they both ask for the same number of test nodes.
-
Jérome Perrin authored
Documentation says this step is done in one transaction, so implement this as documented. Detecting developer mistake and automagically running this step in smaller transactions if more than 100 documents seems unnecessary. At least, it contredicts documentation.
-
Jérome Perrin authored
now that we use alarm sense method, another `notify` call is activated
-
Jérome Perrin authored
-
Jérome Perrin authored
This should fix some race conditions which made post-upgrade steps not executed sometimes. * each steps use an defaultActivateParameterDict so that activity they may create inherits the same tag, so that next step also runs after this). This makes it possible for example to use post-upgrade step on documents newly installed in upgrade step. * use tag / after tag between upgrader steps instead of checking if previous alarm had errors. We also now allow force running only one step regardless of the previous step completion state, there was no strong reason to prevernt this. * do not use two different active sense and fix method for alarms, just use an active sense method understanding `fixit` parameter
-
Nicolas Wavrant authored
It allows idempotent result on any test node
-
Kazuhiko Shiozaki authored
replace method_name:method parameter instead of replacing form action, otherwise method_name like listbox_setPage does not work.
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
- 30 Aug, 2016 3 commits
- 29 Aug, 2016 1 commit
-
-
Romain Courteaud authored
unescape_chr is executed with such string: "C:\Program Files\1234.jpg". Prevent failing, and return original string in such case.
-
- 24 Aug, 2016 4 commits
-
-
Tristan Cavelier authored
-
Tristan Cavelier authored
Previous behavior was to generate reference this way : `sanitized title` if reference was not already existing else `random "-" sanitized title`. Now it generates `sanitized title "-" random` with: - `random` at the end to maximize search engine optimization; - `random` every time present to prevent creating document with the same reference by mistake. + update tests
-
Tristan Cavelier authored
added possibly by mistake. see 1cb54350
-
Georgios Dagkakis authored
-
- 23 Aug, 2016 4 commits
-
-
Jérome Perrin authored
We now use URL only, old address + port way is obsolete.
-
Jérome Perrin authored
host and port configuration is obsoleted by URL configuration
-
Jérome Perrin authored
Build a conversion_server_url from conversion_server_(hostname/port), so that we can already stop using the old parameters
-
Aurel authored
-
- 22 Aug, 2016 8 commits
-
-
Sven Franck authored
-
Sven Franck authored
-
Sven Franck authored
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
- 19 Aug, 2016 1 commit
-
-
Yusei Tahara authored
-
- 18 Aug, 2016 1 commit
-
-
Douglas authored
The ImportFixer AST processor wasn't correctly handling the alias for imports. Now it takes them into consideration correctly. A test to cover this case was added.
-