- 26 Feb, 2019 8 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
no need to use different test components
-
Jérome Perrin authored
also update _createPerson to reindex, as said in the docstring
-
Jérome Perrin authored
-
Jérome Perrin authored
- plugin must be enabled for IAuthenticationPlugin - check complete authentication sequence, not just extraction - update scripts to new names
-
Jérome Perrin authored
Make this plugin also an IAuthenticationPlugin which does all the job of returning the user id. It does not really make sense to delegate this to default authenticator. A side effect is that token can still authenticate users with no assignments, since tokens are scriptable, if this is a requirement, it can be implemented in scripts. Because this was broken, we took the liberty to introduce a breaking change to fix naming, now type based scripts are getUserId.
-
Jérome Perrin authored
As script return user_ids it's more logical to name them *_getUserId
-
- 08 Feb, 2019 4 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
The fields are displayed only if some portal types are configured as member of payment_request group. This means that currently it's not displayed by default.
-
Jérome Perrin authored
-
- 07 Feb, 2019 17 commits
-
-
Jérome Perrin authored
When clicking "Reply" on a discussion post, this script adds a hidden input to mark which post we are replying to. This cause problem when ctrl+clicking reply to reply in a new tab, because it leaves the page with the extra hidden input, which cause problems, like clicking reply again cause Error Value: You are not allowed to access '['1', '1']' in this context , or clicking change page will reply. This is a minimal effort fix, just remove the added element after click.
-
Jérome Perrin authored
This is needed when running livetests in a runUnitTest instance, in the following scenario: - `runUnitTest --save test_bt:testXXX` - `runUnitTest --save --load` - run the live test from the browser because livetest way of processing activities is to unsubscribe at the beginning of the test and subscribe at the end to have control of activities when running .tic, if ProcessingNodeTestCase also process the activities automatically, they interfere and test often fail with errors like: ``` File "ERP5Type/tests/ProcessingNodeTestCase.py", line 249, in tic raise RuntimeError(error_message) RuntimeError: tic is looping forever. These messages are pending: [('/erp5/portal_components/test.erp5.testSupportRequest', 'immediateReindexObject', 1, 0), ('/erp5/support_request_module/2617', 'immediateReindexObject', -1, 0)] ``` /reviewed-on nexedi/erp5!779
-
Jérome Perrin authored
This workflow involved an Assignee who can open, close, re-open and an Assignor who can close definitively. This is usually configured so that accountants are Assignee and CFO is Assignor. We realized that re-opening a Period that was previously closed is something we don't want the accountants to do without CFO's approval. To support this configuration, we only allow Assignor to re-open. Now Assignee can open and close temporarily and Assignor can re-open and close definitively.
-
Jérome Perrin authored
Insert fields in a <div>, not in a <table>, fields are not valid table elements (they are not <tr>). Configurator still produce invalid HTML, this seem to be the minimal fix to have matrixboxs rendered properly without having to rewriting all configurator page templates.
-
Jérome Perrin authored
So that all string fields have same width
-
Jérome Perrin authored
-
Jérome Perrin authored
If user still has a cookie from a previous run this this will cause problems. This is a dirty workaround. Why configurator has to use cookies ?
-
Jérome Perrin authored
https://www.erp5.com/erp5-HowTo.Create.Action.Dialogs > The action must use an intermediate dialog, where the user can enter parameters. Also allow to set a name for the business configuration that will be created.
-
Jérome Perrin authored
* fix typo in column name * add editable field for correct display
-
Jérome Perrin authored
I'm not sure this workflow is used, just fix the transition which were using non existant dialog or wrong transitions names.
-
Jérome Perrin authored
-
Jérome Perrin authored
... otherwise when nothing is selected it looks like something is set. Also translate and sort output.
-
Jérome Perrin authored
Slapos build does not seem to support gif.
-
Jérome Perrin authored
* it should be a *list* mode listbox (it was a view mode) * listbox column title should be the portal type name ( no written rule for this apparently ) * listbox title should be plural of portal type https://www.erp5.com/documentation/developer/guideline/module/erp5-Guideline.Module.Creation/#set-listbox-title-to-plural-of-portal-type-title-if-applicable
-
Jérome Perrin authored
my_view_mode_listbox_configuration_save should use my_view_mode_listbox as target, not my_list_mode_listbox
-
Jérome Perrin authored
-
- 31 Jan, 2019 6 commits
-
-
Jérome Perrin authored
backport nexedi/erp5!740 tests for booking in french language from https://lab.nexedi.com/nexedi/capago/merge_requests/363 needs it, probably on production it should not change anything as with "real zopes" we set the encoding in zope.conf. 66b4b55f did not apply, I just skipped this commit. /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/35
-
Jérome Perrin authored
zope.conf default encoding is also used for responses and converters, so for consistency we should also force default encoding there. This is especially useful when running tests, because zope.conf is not used and default values are used.
-
Jérome Perrin authored
-
Jérome Perrin authored
https://tools.ietf.org/html/rfc4329#section-7 states that text/javascript is obsolete. Doesn't really matter in the end because WebPage_viewAsWeb forces the content type.
-
Jérome Perrin authored
In HTTP/1.1 , when not specified , charset detault to ISO-8859-1 https://tools.ietf.org/html/rfc2616#section-3.7.1 > media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP Zope adds a charset with default encoding ( https://github.com/zopefoundation/Zope/blob/2.13/src/ZPublisher/HTTPResponse.py#L512-L515 ) but does this only for text/ type, but we serve our javascript as application/javascript
-
Jérome Perrin authored
-
- 18 Jan, 2019 2 commits
-
-
Jérome Perrin authored
backport nexedi/erp5!825/ for test failure at https://lab.nexedi.com/nexedi/capago/merge_requests/360/diffs#note_73137 /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/34
-
Jérome Perrin authored
According to pep-0263, python scripts can define encoding magic on first or second line. If we use for example such a script: ```python # coding: utf-8 return "héhé" ``` then using .read() was wrong, because it return the script with headers, ie: ```python ## Script (Python) "test_coding" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # coding: utf-8 return "héhé" ``` so the coding magic is no longer in first line and pylint complains with error like: Cannot decode using encoding "ascii", unexpected byte at position 11 (invalid-encoded-data)]
-
- 10 Jan, 2019 2 commits
-
-
Jérome Perrin authored
backport nexedi/erp5!796 mentioned in [Re: Create Bt5 with list of all accounting accounts ?](https://www.erp5.com/project_section/capago-project/forum/Create-Bt5-with-list-of-all-accounting-accounts-HLBp84CyNR/view?list_start=9&reset=1#2019138697) /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/33
-
Jérome Perrin authored
Using a cache cookie that is incremented each time an account is added or modified, we can keep an (almost) up to date list of accounts in the UI. Fixes #20170221-1812E21 /reviewed-on nexedi/erp5!796 (cherry picked from commit bbbe264a)
-
- 03 Dec, 2018 1 commit
-
-
Aurel authored
missing in https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/30
-