- 06 Jan, 2022 3 commits
-
-
Jérome Perrin authored
When running with ZServer, TimerServer will be started by ZConfig machinery, because ZServer comes with some ZConfig data types for server factory which start servers. One Zope 2, ZServer was imported from zopeschema: https://github.com/zopefoundation/Zope/blob/2.13.30/src/Zope2/Startup/zopeschema.xml#L10 and ZConfig used the TimerServerFactory to create a TimerService. On Zope 4, ZServer is not imported anymore in the new wsgischema: https://github.com/zopefoundation/Zope/blob/4.6.3/src/Zope2/Startup/wsgischema.xml so the ZConfig data type can not be used to create the server. Instead of relying on ZServer's ZConfig, we create the server directly from the startup script, the logic to attach to waitress is already here and startup and factory just called create, so the only difference is that we no longer use zope.conf to configure TimerService, but configure from the script. SlapOS profile also needs to be modified in order to not include ZConfig bits for timerserver and to pass the timerserver interval in the wrapper to this script.
-
Jérome Perrin authored
Since https://github.com/zopefoundation/Zope/commit/2da2c2c28a8b21e78e8ef93aa17da926e3102c26 SERVER_PORT is assumed to be convertible to int. The value of this port is not really supposed to be used because TimerServer requests does not have a server (for example in CMFActivity we recreate the initial request), so put a value of -1 to prevent accidental use.
-
Jérome Perrin authored
Only catch exceptions, we don't need a bare except here. In case of exception, log the traceback instead of being silent.
-
- 22 Dec, 2021 1 commit
-
-
Romain Courteaud authored
If one callable has the default ID '1', it will break nearly all newContent calls on empty object
-
- 21 Dec, 2021 1 commit
-
-
Romain Courteaud authored
-
- 15 Dec, 2021 5 commits
- 14 Dec, 2021 4 commits
-
-
Roque authored
-
Romain Courteaud authored
-
Romain Courteaud authored
- 13 Dec, 2021 2 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
- 07 Dec, 2021 2 commits
-
-
Cédric Le Ninivin authored
-
Levin Zimmermann authored
Adding **kw prevents "Unexpected keyword argument 'select_favorite'". The removed arguments url, user and password aren't used by the Script and can therefore be removed.
-
- 03 Dec, 2021 1 commit
-
-
Vincent Pelletier authored
Allows using an empty fallback value with "replace" set to trigger header removal.
-
- 02 Dec, 2021 1 commit
-
-
Cédric Le Ninivin authored
See merge request !1501
-
- 30 Nov, 2021 1 commit
-
-
Cédric Le Ninivin authored
erp5_openid_connect_client_login: Add dedicated cache factory to work with open id connect erp5_openid_connect_client_login: Add Scope, Client Metadata and state * Add configurable scope to connector * Client Metadata is a JSON defined on connector * Add state parameter to make redirect non repeatable erp5_openid_connect_client_login: Update OpenId Connect to be be fully functionnal erp5_openid_connect_client_login: Add tests and some minor fixup erp5_openid_connect_client_login: Don't call create user on each call to callback erp5_openid_connect_client_login: Test create connector in portal web services erp5_openid_connect_client_login: Fix test on open Id connector creation in afterSetUp OpenIDConnect: Add Extraction Plugin openidconnect: Have functionnal Extractor erp5_core: Add Case of OpenId Connect Client erp5_xhtml_style: Add OpenId Connect to Login Form erp5_web: Add OpenId Connect Logout erp5_web_renderjs_ui: Add OpenId Connect to Login Form and Logout erp5_credential: Add OpenId Connect to login form
-
- 29 Nov, 2021 11 commits
-
-
Romain Courteaud authored
It is GPDR compliant, as no cookie is set
-
Romain Courteaud authored
Use CSP to improve protection against XSS and improve user privacy. No javascript is supposed to be executed on the error page.
-
Romain Courteaud authored
-
Romain Courteaud authored
Such web sites are meant for anonymous access only, to improve CDN usage.
-
Romain Courteaud authored
Do not load any JS, because the gadget may crash too, as no erp5 field is rendered Allow users to go to the homepage.
-
Romain Courteaud authored
Prevent img to increase the page width.
-
Romain Courteaud authored
-
Romain Courteaud authored
Most listbox functionnalities are not supported by web_js_style for now, as no form is used by default
-
Romain Courteaud authored
Their contents is already provided by the HTML page template.
-
Romain Courteaud authored
Generate a hfeed in the HTML rendering. https://indieweb.org/feed Provide a RSS feed automatically. Only generate the feed when rendering the web section in view mode. Extract all feed informations in Javascript to allow styling it as a blog. Add bt5 dependency to erp5_dms to retrieve the author title.
-
Romain Courteaud authored
This allows called script to call script on them
-
- 26 Nov, 2021 2 commits
-
-
Cédric Le Ninivin authored
-
Cédric Le Ninivin authored
-
- 24 Nov, 2021 2 commits
-
-
Jérome Perrin authored
This stopped working when the signature of Message.__init__ changed in 06aee0c2 (CMFActivity.ActivityTool: Use uid for identity check instead of oid., 2019-09-17)
-
Jérome Perrin authored
"Access Tool" sounds like a tool to access, but this setting is about giving access to ERP5 tools from the module list.
-
- 19 Nov, 2021 2 commits
-
-
Xiaowu Zhang authored
See merge request !1509
-
Romain Courteaud authored
See merge request !1510
-
- 18 Nov, 2021 1 commit
-
-
Xiaowu Zhang authored
we have such error: .... if context.getValidationState() in ["draft", "deleted", "cancelled", "archived"]: Module Products.ERP5Type.Accessor.WorkflowState, line 60, in __call__ return wf._getWorkflowStateOf(instance, id_only=1) Module Products.ERP5Type.Core.Workflow, line 609, in _getWorkflowStateOf state_id = 'state_' + status.get(self.getStateVariable(), None) TypeError: cannot concatenate 'str' and 'NoneType' objects
-
- 17 Nov, 2021 1 commit
-
-
Jérome Perrin authored
This stopped working long time ago, probably with slapos commit aa102f28f (erp5testnode: use newer shellinabox, with a caddy frontend, 2018-09-21)
-