- 12 May, 2024 14 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
page templates unicode resolver already takes care of coercing when needed and this is directly compatible with python2 and python3 Co-authored-by: Kazuhiko SHIOZAKI <kazuhiko@nexedi.com>
-
Jérome Perrin authored
This only works on python2
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
-
Jérome Perrin authored
for same reason as the xhtml_style version, there is no problem with having more than one listbox, see d2dedca3 (core: remove useless log in Base_callDialogMethod, 2020-07-03)
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
this is not used and cause a SyntaxWarning
-
Jérome Perrin authored
This was based on libraries that were never ported to python3. If this is still needed, it would have to be reimplemented with other newer technologies.
-
Jérome Perrin authored
assertCountEqual is the new python3 name. Implement this in backportUnittest.py and also move the existing similar patches (assertRaisesRegex and assertRegex).
-
- 10 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 09 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 08 May, 2024 2 commits
-
-
Rafael Monnerat authored
See merge request !1932
-
Jérome Perrin authored
Use same label as the action, "Preview"
-
- 07 May, 2024 2 commits
-
-
Thomas Gambier authored
-
Thomas Gambier authored
-
- 30 Apr, 2024 1 commit
-
-
Vincent Pelletier authored
These scripts take time to run, so restrict them to Manager users.
-
- 29 Apr, 2024 1 commit
-
-
Rafael Monnerat authored
See merge request nexedi/erp5!1928
-
- 24 Apr, 2024 1 commit
-
-
Carlos Ramos Carreño authored
See merge request nexedi/erp5!1915
-
- 22 Apr, 2024 1 commit
-
-
Rafael Monnerat authored
The render is useful to preview content after edit while doing a gadget or on other contexts. Since corportate identity has erp5_web as dependency, it cause no harm to move.
-
- 16 Apr, 2024 5 commits
-
-
Rafael Monnerat authored
See merge request !1919
-
Rafael Monnerat authored
-
Rafael Monnerat authored
* const is handled as enum with a single value automatically * patch ensureArraySize to not modify the user input, let the user safely slice by himself. * Reorganise patches so it is grouped by prototype
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Improvements compared to the previous implementation: - avoid looking up the user document again, when the PAS plugin already did that job - make it possible to call a single script when multiple sources of groups are based on the same documents, avoiding iterating unnecessarily on those same documents multiple times - avoid repeating the same membership value (ex: when a user has multiple assignments with a common membership subset) - avoid resolving the same relation more than once - do not go from document value to relative URL only to go from relative URL back to document value at the next step - move security group id extraction to unrestricted python, as the security overhead was taking a large amount of time In a security setup with 8 scripts (all Assignment-based), 6 base categories, and 4 Assignments (all valid), this implementation is 10 times faster at producing the same group id set as the previous one.
-
- 15 Apr, 2024 1 commit
-
-
Rafael Monnerat authored
See merge request !1918
-
- 13 Apr, 2024 3 commits
-
-
Rafael Monnerat authored
This prevents loose data and wrong edits.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
XXX update description on a squash to explain better.
-
- 11 Apr, 2024 1 commit
-
-
Carlos Ramos Carreño authored
The `write` method of the `output` object was being overwritten in live tests, replacing it to a function that printed both to the output and to stdout. This was not necessary, as it is possible to use this function directly. Moreover, the function code had two flaws: - It assumed that output was a particular (StringIO) class. This caused a problem during the migration (commit 80bd30fc). - It printed to stdout instead to stderr. Using the function directly allows `output.write` to be used inside it, preventing the first flaw. The second flaw has also been solved.
-
- 09 Apr, 2024 2 commits
-
-
Jérome Perrin authored
This is no longer needed now, maybe since Zope4 or maybe since a patch in slapos. This option does not exist on python3 and using pylint on python3 complains about these disable, so we have to remove them on python2 as well.
-
Jérome Perrin authored
-
- 08 Apr, 2024 1 commit
-
-
Paul Graydon authored
See merge request !1912
-
- 29 Mar, 2024 1 commit
-
-
Romain Courteaud authored
-
- 27 Mar, 2024 2 commits
-
-
Jérome Perrin authored
This makes consistent method resolution order with python3 and reveal a problem that relation field widgets render_pdf was not the expected one on python3, solve this by defining explicitly the method.
-
Jérome Perrin authored
roundDebitCredit does not raise in case of big difference since 696bc0d2 (2009-02-06 yo * Stop raising an exception, even if the credit is not equal to the debit in a built delivery, in the post processing script, because the builder may not blindly adopt prevision when updating existing lines, thus it can be unbalanced., 2009-02-06) This assertRaises syntax does nothing on python2 and was an error on python2. Update the test to test the actual behavior
-