- 04 Oct, 2019 8 commits
-
-
Jérome Perrin authored
Our patched MySQLDA assumes that DATE and DATETIME columns are in UTC, but the TIMESTAMP columns are using mysql's time_zone variable, which defaults to mysql server system timezone. Set time_zone session variable at the beginning of each connection so that TIMESTAMP columns are also UTC.
-
Jérome Perrin authored
This API is not supposed to take into account security, unrestrictedSearchResults is usually a bit faster
-
Jérome Perrin authored
At this point, the alarm is active, but active process for this activity was not created yet. By passing include_active, the latest active process will be returned (not the previous one) Honnestly, not sure if this falls into workaround or non documented normal use case for include_active=True.
-
Jérome Perrin authored
last_active_process.getStartDate() is in Zope timezone, we should not just pass a string representation to catalog but pass a DateTime instance instead, to let catalog convert the date to UTC (because catalog tables have UTC dates). Where it gets more complicated is that unlike all DATETIME columns in catalog that are UTC, indexation_timestamp is a TIMESTAMP column, which depend on MySQL timezone settings. This also depend assume that MySQL is configured with an UTC timezone.
-
Jérome Perrin authored
-
Jérome Perrin authored
no need to do this magic with user_id if we are using an organisation
-
Jérome Perrin authored
-
Jérome Perrin authored
to prevent a warning Also reindent long too long line
-
- 02 Jul, 2019 2 commits
-
-
Jérome Perrin authored
This works only for medusa, using the same approach as CMFCore's CookieCrumbler simplified backport of nexedi/erp5!901 /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/46
-
Jérome Perrin authored
Backport nexedi/erp5!897 ( by re-applying the script on this fork ) /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/45
-
- 26 Jun, 2019 2 commits
-
-
Jérome Perrin authored
We want to search for what user entered, if we strip whitespaces we would not match trailing or leading spaces
-
Jérome Perrin authored
This will apply to newly created relation fields.
-
- 20 Jun, 2019 1 commit
-
-
Jérome Perrin authored
backport nexedi/erp5!758 This solves the race condition that leaves stdout as a StringIO when this is executed twice in parrallel ( #20180928-1D89375 ) But this prints No config file found, using default configuration on sys.stderr at every execution, but that's acceptable. Once we update pylint, we can disable this warning by setting verbose=false ( this is not yet available on pylint 1.4.4 ) /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/43
-
- 17 Jun, 2019 27 commits
-
-
Jérome Perrin authored
Backport nexedi/erp5!687 ee511b7d is an incomplete backport /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/42
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
Because typescript is a subset of javascript, running typescript compiler on javascript files can already report several issues. https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html
-
Jérome Perrin authored
This is triggered by using "Format document" from context menu. Include prettier 1.14.0 Copyright 2017-2018 James Long https://github.com/prettier/prettier/
-
Jérome Perrin authored
-
Jérome Perrin authored
So that we can edit web pages & web scripts with monaco (incomplete backport as we don't have ERP5JS editor gadget yet)
-
Jérome Perrin authored
So that javascript editor provides hints for code using these libraries. Some pointers for type scripts definitions: https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html https://definitelytyped.org/
-
Jérome Perrin authored
-
Jérome Perrin authored
In the previous approach, several "useless" request were still made during edition.
-
Jérome Perrin authored
-
Jérome Perrin authored
https://microsoft.github.io/monaco-editor/ as an ERP5 source code editor this commit is only a build of the vendor code. It was built using https://lab.nexedi.com/jerome/monaco-editor-erp5/ at revision b1ecc18f and uploaded to ERP5 following this procedure: First enable webdav by adding in zope conf: ``` <webdav-source-server> address 127.0.0.1:12200 force-connection-close off </webdav-source-server> ``` This was built and uploaded to ERP5 with: ```bash git clone https://lab.nexedi.com/jerome/monaco-editor-erp5.git/ cd monaco-editor-erp5 npm npm run build lftp http://login:pwd@127.0.0.1:12200/erp5/portal_skins/erp5_monaco_editor/monaco-editor/ -e 'mput dist/*' ```
-
Jérome Perrin authored
This reverts commit 1ee3aced.
-
Jérome Perrin authored
This reverts commit d881b1e6.
-
Jérome Perrin authored
This reverts commit 93d60201.
-
Jérome Perrin authored
This reverts commit 9924e5ef.
-
Jérome Perrin authored
This reverts commit 5d7481d2.
-
Jérome Perrin authored
This reverts commit 2b6de770.
-
Jérome Perrin authored
This reverts commit 2fa9230e.
-
Jérome Perrin authored
This reverts commit 566dec3f.
-
Jérome Perrin authored
This reverts commit 9b86cf7b.
-
Jérome Perrin authored
This reverts commit 0b7ed9ad.
-
Jérome Perrin authored
This reverts commit 5fd6ad5f.
-
Jérome Perrin authored
This reverts commit ac615670.
-
Jérome Perrin authored
backport nexedi/erp5!880 First revert a first attempt that was incorrect and then backport a7ffbc92 which is related and make the rest apply cleanly /reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/41
-
Jérome Perrin authored
This way we can use gadgets using of ERP5JS translation API in xhtml style. This is really minimal compatibility layer and translation is not actually performed.
-
Jérome Perrin authored
This way the "you have unsaved changes" pops up also when navigating away after changing gadget content.
-