- 11 Jul, 2024 40 commits
-
-
Xiaowu Zhang authored
context is actually a web section
-
Jérome Perrin authored
and fix some missing cache
-
Jérome Perrin authored
automaticLayout can not be used with firefox 68 (the browser from test nodes) because it lacks support for ResizeObserver
-
Jérome Perrin authored
triggered manually with "Format Document" of "Format Selection" actions
-
Jérome Perrin authored
This enables usage of @ in quick pick to search for symbols and make sticky scroll show the current context
-
Rafael Monnerat authored
Probably there are missing files but it is a start.
-
Jérome Perrin authored
With tweaks to support firefox 68 from test nodes: - build with babel, see monaco-editor-erp5@cf10f2d5 - special handling of ResizeObserver that does not exist in Firefox 68: it is used only for automaticLayout, which is not strictly needed. So this feature will not work for firefox 68. Enable sticky scroll Set caching manager to must_revalidate_http_cache
-
Jérome Perrin authored
This is different from the total of durations of test result lines because they are executed in parralel on different testnodes. The actual duration is just the difference between start and stop, so that we don't have to calculate.
-
Jérome Perrin authored
This makes it easier to understand the duration in minutes and hours
-
Jérome Perrin authored
There is no good reason to prevent editing in cancelled state and it can be needed, for example to remove a cancelled payment transaction from a payment transaction group.
-
Jérome Perrin authored
-
Jérome Perrin authored
The add-hoc assertin filter: -- from typing import List import lib2to3 from lib2to3.fixer_base import BaseFix from lib2to3.fixer_util import Comma, Name class FixAssertIn(BaseFix): PATTERN = """ power< any+ trailer< '.' meth=("assertTrue" | "assertFalse")> trailer< '(' comparison< (needle=any ( comp_op<'not' 'in'> | 'in' ) haystack=any) > ')' > > """ def transform(self, node: lib2to3.pytree.Node, results: List[lib2to3.pytree.Base]): needle = results['needle'] haystack = results['haystack'] meth = results["meth"][0] method_map = {True: 'assertIn', False: 'assertNotIn'} method_in = meth.value == 'assertTrue' if 'not' in str(needle.parent.children[1]): method_in = not method_in meth.replace(Name(method_map[method_in], prefix=meth.prefix)) needle.parent.children = [needle, Comma(), haystack]
-
Jérome Perrin authored
so that we can run 2to3.fix_assert
-
Jérome Perrin authored
this code was latin 1, causing issues for refactoring scripts
-
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
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
-
Vincent Pelletier authored
Unindexation happens in a transation after the corresponding document was deleted. So there is no context available to check the type of the deleted document. So these filter expressions are meaningless.
-
Vincent Pelletier authored
Unindexation happens in a transation after the corresponding document was deleted. So there is no context available to check the type of the deleted document. So these filter expressions are meaningless.
-
Vincent Pelletier authored
Unindexation happens in a transation after the corresponding document was deleted. So there is no context available to check the type of the deleted document. So these filter expressions are meaningless.
-
Jérome Perrin authored
This updates the change to 32cead86 (xhtml_style: set a bottom margin for dialog action, 2019-05-31) that got impacted by a rule added on html and body in 5dde17a5 (xhtml_style: make editors in bottom group use full height, 2022-08-22)
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored