- 16 Dec, 2022 12 commits
-
-
Jérome Perrin authored
Form.__call__ replaces page template call, so it is also responsible to set the content type in response. With Page Templates, ZopePageTemplate._exec (called by Shared.DC.Scripts.Bindings.__call__ and _bindAndExec) sets the response content type and calls pt_render. Form.__call__ also calls pt_render, so to behave like page template, it should also sets the response content type. In erp5_xhtml_style, we don't notice this, because global_definitions contains a setHeader call to set content type to html.
-
Jérome Perrin authored
Check that it correctly includes the web page and sets the content type header.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
it would be good to rewrite this in a page template
-
Jérome Perrin authored
This method converts the HTML, so it should escape nasty HTML tags. Also add missing escaping when inserting the base
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
and move it to erp5_administration, this is not a "core" feature but just a developer tool. It was used in a few tests, move all the tests in testERP5Administration
-
Jérome Perrin authored
See merge request nexedi/erp5!1706
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 13 Dec, 2022 1 commit
-
-
Julien Muchembled authored
See also nexedi/slapos.libnetworkcache@319b8b18
-
- 12 Dec, 2022 2 commits
-
-
Jérome Perrin authored
See merge request !1705
-
Jérome Perrin authored
Make sure we don't set grouping reference on lines that have a valid group only for source (or destination) but not for the other side.
-
- 09 Dec, 2022 2 commits
-
-
Jérome Perrin authored
gadget_html_viewer had styles to add a border for tables, so that they look similar to tables added in CKEditor. One problem is that all tables had borders, because HTML emails are often using tables to position the content, when viewing an Mail Message from ERP5 back office interface we could see all the borders, which looked a bit ugly. These changes bring back a behavior closer to default style sheet of browsers: tables have no border by default, but a rule is added to emulate the rendering of border="1" attributes, so that tables edited with CKEditor have borders and look the same in the editor or in the html viewer.
-
Jérome Perrin authored
-
- 08 Dec, 2022 1 commit
-
- 07 Dec, 2022 1 commit
-
-
Eteri authored
-
- 06 Dec, 2022 6 commits
-
-
Eteri authored
-
Jérome Perrin authored
Instead of add-hoc ", ".join
-
Jérome Perrin authored
-
Jérome Perrin authored
This reorganises a bit the tests to include the proxify feature of ERP5 Form in ERP5 Form test
-
Jérome Perrin authored
-
Jérome Perrin authored
helpful to get an overview
-
- 01 Dec, 2022 1 commit
-
-
Jérome Perrin authored
Remove title, we don't need title and reference, because title is acquired from reference, so they have the same value. Add Causality, it can be useful for example to search in the module. Add "more columns" for all properties from the view of a stripe session
-
- 29 Nov, 2022 1 commit
-
-
Jérome Perrin authored
This is now detected by coding style test
-
- 28 Nov, 2022 8 commits
-
-
Jérome Perrin authored
```py kw = {...} kw['metadata[key]'] = 'value' connector.createSession(**kw) ``` but it would be more beautiful to be able to write it like this: ```py kw = {...} kw['metadata] = {'key': 'value'} connector.createSession(**kw) ``` This would need change in the way the request data is serialised in createSession.
-
Julien Muchembled authored
This fixes things like: portal_catalog(source_reference={'query':'foo OR bar', 'key':'KeywordKey'}) or: portal_catalog(query=AutoQuery(source_reference='foo OR bar', key='KeywordKey')) So we get: (`...`.`reference` LIKE '%foo%' OR `...`.`reference` LIKE '%bar%') instead of: `...`.`reference` IN ('{\'query\': \'foo\', \'key\': \'KeywordKey\'}', '{\'query\': \'bar\', \'key\': \'KeywordKey\'}') Also, remove default values as it makes it easy for caller to leave arguments out by mistake. Also, use positional arguments as they are faster than named arguments. See merge request nexedi/erp5!1698
-
Jérome Perrin authored
this makes it easier to select the value by copy and paste. Without the space, when double clicking on "value" in "key:value", all "key:value" gets selected, with the space, only "value" gets selected.
-
Jérome Perrin authored
Invoking Zuite_waitForActivities when portal_activities is already subscribed and while another thread from this process is already executing activities causes infinite "Got a lock error, retrying...". This situation happens when developer makes a mistake (runs the tests without unsubscribing activities), so be nice to the developer so that they don't have to restart Zope.
-
Jérome Perrin authored
It's enough to set on the class and if we don't have it on instances, it saves a few bytes in pickles
-
Jérome Perrin authored
There have been a regression recently
-
Jérome Perrin authored
Depends on nexedi/slapos!1290 See merge request nexedi/erp5!1695
-
Jérome Perrin authored
-
- 21 Nov, 2022 5 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Jérome Perrin authored
-
Jérome Perrin authored
When installing scripts or components from a business template, set the _erp5_coverage_filename property so that the plugin is able to find the corresponding code from the business template filesystem representation.
-
Jérome Perrin authored
coverage might use these to compute the upload URL for coverage data
-