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
Léo-Paul Géneau
erp5
Commits
c88c2e42
Commit
c88c2e42
authored
May 29, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epr5_corporate_identity_test: active default preference if disabled
parent
d22573a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplateList.py
...components/test.erp5.testCorporateIdentityTemplateList.py
+3
-5
No files found.
bt5/erp5_corporate_identity_test/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplateList.py
View file @
c88c2e42
...
...
@@ -87,11 +87,9 @@ class TestCorporateIdentityTemplateList(ERP5TypeTestCase):
self
.
message_catalog
.
message_edit
(
'Press Release'
,
'de'
,
'Pressemeldung'
,
''
)
# Activating a system preference if none is activated
for
preference
in
self
.
portal
.
portal_catalog
(
portal_type
=
"System Preference"
):
if
preference
.
getPreferenceState
()
==
"global"
:
break
else
:
self
.
portal
.
portal_preferences
.
default_nexedi_system_preference
.
enable
()
preference
=
self
.
getDefaultSystemPreference
()
if
preference
.
getPreferenceState
()
!=
"global"
:
preference
.
enable
()
self
.
tic
()
def
createTestEvent
(
self
,
target_language
,
source_relative_url
,
destination_relative_url
):
...
...
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