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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
dc047405
Commit
dc047405
authored
Nov 04, 2014
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve politesses 3
parent
0d03838b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+1
-2
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+1
-1
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
dc047405
...
@@ -5817,7 +5817,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -5817,7 +5817,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_portal_types_id_list
=
list
(
self
.
getTemplatePortalTypeIdList
())
bt_portal_types_id_list
=
list
(
self
.
getTemplatePortalTypeIdList
())
bt_portal_type_roles_list
=
list
(
self
.
getTemplatePortalTypeRoleList
())
bt_portal_type_roles_list
=
list
(
self
.
getTemplatePortalTypeRoleList
())
bt_wf_chain_list
=
list
(
self
.
getTemplatePortalTypeWorkflowChainList
())
bt_wf_chain_list
=
list
(
self
.
getTemplatePortalTypeWorkflowChainList
())
Base_translateString
=
self
.
Base_translateString
for
id
in
bt_portal_types_id_list
:
for
id
in
bt_portal_types_id_list
:
portal_type
=
ttool
.
getTypeInfo
(
id
)
portal_type
=
ttool
.
getTypeInfo
(
id
)
...
@@ -5865,7 +5864,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -5865,7 +5864,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
for
act_id
in
action_list
:
for
act_id
in
action_list
:
if
act_id
is
None
:
if
act_id
is
None
:
return
(
1
,
Base_translateString
(
return
(
1
,
self
.
Base_translateString
(
"ERROR: An action has an empty id on portal_type ${id}"
,
"ERROR: An action has an empty id on portal_type ${id}"
,
mapping
=
dict
(
id
=
id
)))
mapping
=
dict
(
id
=
id
)))
action_id
=
id
+
' | '
+
act_id
action_id
=
id
+
' | '
+
act_id
...
...
product/ERP5/tests/testBusinessTemplate.py
View file @
dc047405
...
@@ -1523,7 +1523,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
...
@@ -1523,7 +1523,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
self
.
assertTrue
(
bt
is
not
None
)
self
.
assertTrue
(
bt
is
not
None
)
result
,
message
=
bt
.
getPortalTypesProperties
()
result
,
message
=
bt
.
getPortalTypesProperties
()
self
.
assertEqual
(
result
,
1
)
self
.
assertEqual
(
result
,
1
)
def
stepCreateSecondAction
(
self
,
sequence
=
None
,
**
kw
):
def
stepCreateSecondAction
(
self
,
sequence
=
None
,
**
kw
):
"""
"""
Create a second action
Create a second action
...
...
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