File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
src/collective/documentgenerator/tests Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ Changelog
6
6
7
7
- Python 3, Plone 5.2 and Plone 6.0 compatible.
8
8
[aduchene]
9
-
9
+ - Fixed an issue when odt_file.filename could be None when searching and replacing.
10
+ [aduchene]
10
11
11
12
3.43 (2024-04-10)
12
13
-----------------
Original file line number Diff line number Diff line change 53
53
'z3c.table' ,
54
54
# fix about orderedselect
55
55
'z3c.form>=3.2.4' ,
56
- 'imio.helpers>=0.57 ' ,
56
+ 'imio.helpers>=1.0 ' ,
57
57
'imio.migrator>=1.11'
58
58
],
59
59
extras_require = {
Original file line number Diff line number Diff line change @@ -417,3 +417,11 @@ def test_search_replace_control_panel_regex_validator(self):
417
417
data = {"replacements" : replacements }
418
418
errors = form .widgets .validate (data )
419
419
self .assertFalse (errors )
420
+
421
+ def test_no_odt_file_or_no_filename (self ):
422
+ self .template1 .odt_file = None
423
+ self .template2 .odt_file .filename = None
424
+ with SearchAndReplacePODTemplates ((self .template1 , self .template2 )) as search_replace :
425
+ results = search_replace .search ("view" )
426
+
427
+ self .assertEqual (len (results .keys ()), 0 )
You can’t perform that action at this time.
0 commit comments