Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
slapos.core
Commits
d8b0a4d3
Commit
d8b0a4d3
authored
Apr 16, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store enabled global *site* preferences in BT5.
parent
52c12238
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
445 additions
and
12 deletions
+445
-12
master/bt5/vifib_data/PreferenceTemplateItem/portal_preferences/vifib_default_site_preference.xml
...Item/portal_preferences/vifib_default_site_preference.xml
+443
-0
master/bt5/vifib_data/bt/revision
master/bt5/vifib_data/bt/revision
+1
-1
master/bt5/vifib_data/bt/template_preference_list
master/bt5/vifib_data/bt/template_preference_list
+1
-0
master/product/Vifib/tests/VifibMixin.py
master/product/Vifib/tests/VifibMixin.py
+0
-11
No files found.
master/bt5/vifib_data/PreferenceTemplateItem/portal_preferences/vifib_default_site_preference.xml
0 → 100644
View file @
d8b0a4d3
This diff is collapsed.
Click to expand it.
master/bt5/vifib_data/bt/revision
View file @
d8b0a4d3
100
\ No newline at end of file
101
\ No newline at end of file
master/bt5/vifib_data/bt/template_preference_list
View file @
d8b0a4d3
vifib_default_site_preference
vifib_default_system_preference
\ No newline at end of file
master/product/Vifib/tests/VifibMixin.py
View file @
d8b0a4d3
...
...
@@ -201,16 +201,6 @@ class testVifibMixin(ERP5TypeTestCase):
self
.
portal
.
_p_changed
=
1
transaction
.
commit
()
def
setPreference
(
self
):
# Enable default preference
preference
=
self
.
portal
.
portal_preferences
.
default_site_preference
# XXX-Luke: checking for preference state is no op (in such early state
# this preference is disabled anyway), but in my environment enable does
# not work, UNTIL getPreferenceState is called. Possibly cache/
# /configuration issue, to be checked later
if
preference
.
getPreferenceState
()
==
'disabled'
:
preference
.
enable
()
def
getDefaultSitePreferenceId
(
self
):
"""Default id, usefull method to override
"""
...
...
@@ -311,7 +301,6 @@ class testVifibMixin(ERP5TypeTestCase):
self
.
login
()
self
.
setupVifibMachineAuthenticationPlugin
()
self
.
setupVifibShadowAuthenticationPlugin
()
self
.
setPreference
()
self
.
prepareTestUsers
()
self
.
prepareVifibAccountingPeriod
()
transaction
.
commit
()
...
...
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