- 21 Oct, 2022 4 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
Some objects, in our case BTrees.Length.Length in a ZODB connection have a __str__ method that returns unicode on python2: u'<BTrees.Length.Length object at 0x7f850932e0d0 oid 0x1e334 in <Connection at 7f854bc0f190>>' They cause an unicode error in the history view when they are concatenated together with other str (encoded as UTF-8) properties, this can be observed when using history view with a "folderish" document (but not with a File as in test_ZODBHistoryBinaryData). To prevent this issue, we use the fact that ''.format unlike '' % seem to apply a str() on arguments and use it instead. Co-authored-by: Yusei Tahara <yusei@nexedi.com>
-
Yusei Tahara authored
Some objects become unicode when %s is applied and may cause UnicodeDecodeError, thus use %r insead.
-
Yusei Tahara authored
This reverts commit 40fded3e. It is not good to mix unicode and str for UI. Use utf8 str only.
-
- 20 Oct, 2022 2 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
- 19 Oct, 2022 6 commits
-
-
Jérome Perrin authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
This should detect any Business Template with non-migrated workflows. Exclude the Business Template which is precisely made to test workflow migration.
-
Vincent Pelletier authored
Migrate oauth2_session_refresh_interaction_workflow to new-style workflows. This time, the migration should be complete.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
This reverts commit e925dc0b. This commit is breaking more than it is fixing. Revert until I have a working version of this migration.
-
- 18 Oct, 2022 2 commits
-
-
Jérome Perrin authored
-
Vincent Pelletier authored
Migrate oauth2_session_refresh_interaction_workflow to new-style workflows.
-
- 17 Oct, 2022 6 commits
-
-
Jérome Perrin authored
-
Xiaowu Zhang authored
-
Xiaowu Zhang authored
-
Xiaowu Zhang authored
display comment by default check contributor's organisation ealier display corporate name instead of title display web site instead of default document add logo field for leaflet display value used in dialog update css
-
Yusei Tahara authored
-
Yusei Tahara authored
-
- 13 Oct, 2022 10 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
Call the original method instead of copy/pasting the code We still keep the following patches: - user: this is an ERP5 addition and maybe we use it in customer project code (if we don't I'm in favor of removing the feature, it's used in only one place in this repo) - call `self.changeSkin(self.portal.getCurrentSkinName())`. Maybe this is needed for CMFCore tests and could be good to send upstream, I did not check this part
-
Jérome Perrin authored
This reverts commit 8d81b128. commit message was wrong
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
Call the original method instead of copy/pasting the code The original method will use .encode() on the basic= argument, so it needs to be an ascii str or an unicode on python2, we had to change some callers to pass basic= as text, to prevent: File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/Testing/ZopeTestCase/functional.py", line 43, in wrapped_func return func(*args, **kw) File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/Testing/ZopeTestCase/functional.py", line 93, in publish env['HTTP_AUTHORIZATION'] = basic_auth_encode(basic) File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/ZPublisher/utils.py", line 91, in basic_auth_encode header = b'Basic ' + base64.b64encode(value.encode('latin-1')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
-
Jérome Perrin authored
-
Jérome Perrin authored
ValidationFailed is now a "real" class from Products.ERP5Type.Core.Workflow
-
- 12 Oct, 2022 2 commits
-
-
Jérome Perrin authored
-
Xiaowu Zhang authored
-
- 11 Oct, 2022 2 commits
-
-
Jérome Perrin authored
-
Xiaowu Zhang authored
-
- 08 Oct, 2022 1 commit
-
-
Jérome Perrin authored
-
- 07 Oct, 2022 2 commits
-
-
Jérome Perrin authored
See merge request nexedi/erp5!1676
-
Jérome Perrin authored
this only supported http and never supported https, probably nobody is using this and it makes porting to python3 more complicated
-
- 06 Oct, 2022 3 commits
-
-
Jérome Perrin authored
we had a patch to close <input/> elements, but with HTML5 this is no longer recommended.
-
Jérome Perrin authored
-
Jérome Perrin authored
template_keep_path_list, template_keep_workflow_path_list and template_keep_last_workflow_history_only_path_list were not sorted for no reason
-