Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
61a4d7b5
Commit
61a4d7b5
authored
Jun 25, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testxhtml debiug
parent
66aecd51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
product/ERP5/tests/testXHTML.py
product/ERP5/tests/testXHTML.py
+11
-4
No files found.
product/ERP5/tests/testXHTML.py
View file @
61a4d7b5
...
@@ -112,15 +112,22 @@ class TestXHTMLMixin(ERP5TypeTestCase):
...
@@ -112,15 +112,22 @@ class TestXHTMLMixin(ERP5TypeTestCase):
except
BrokenProxyField
:
except
BrokenProxyField
:
template_field
=
None
template_field
=
None
if
template_field
is
None
:
if
template_field
is
None
:
# field's parent form can actually exists but not in current skin, check if it can be found in portal_skins
# check if the field parent form can be used by this skin_name
found_list_action_list
=
skins_tool
.
ZopeFind
(
skins_tool
,
obj_ids
=
[
field
.
form
.
id
],
search_sub
=
1
)
field_form_id
=
field_path
.
split
(
'/'
)[
0
]
if
found_list_action_list
and
(
found_list_action_list
[
0
][
1
]
!=
field
.
form
):
if
not
skins_tool
.
isFirstInSkin
(
'%s/%s'
%
(
skin_folder_id
,
field_form_id
),
skin
=
skin_name
):
"""
found_list_form_list = skins_tool.ZopeFind(skins_tool, obj_ids=[field_form_id], search_sub=1, obj_skinspec=skin_name)
if found_list_form_list and (not found_list_form_list[0][0].startswith(skin_folder_id)):"""
# The problematic form will not be used by this skin selection
# as another object with the same name exists
error_list
.
append
((
'not critical %s'
,
field_path
,
'field_form_id %s'
%
(
field_form_id
),
field
.
get_value
(
'field_id'
)))
continue
continue
# Base_viewRelatedObjectList (used for proxy listbox ids on
# Base_viewRelatedObjectList (used for proxy listbox ids on
# relation fields) is an exception, the proxy field has no target
# relation fields) is an exception, the proxy field has no target
# by default.
# by default.
if
field_path
!=
'Base_viewRelatedObjectList/listbox'
:
if
field_path
!=
'Base_viewRelatedObjectList/listbox'
:
error_list
.
append
((
skin_name
,
field_path
,
field
.
get_value
(
'form_id'
),
error_list
.
append
((
skin_name
,
'%s %s !!%s %s'
%
(
found_list_form_list
,
skin_folder_id
,
field_form_id
,
field_path
)
,
field
.
get_value
(
'form_id'
),
field
.
get_value
(
'field_id'
)))
field
.
get_value
(
'field_id'
)))
if
error_list
:
if
error_list
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment