Commit d8b0a4d3 authored by Łukasz Nowak's avatar Łukasz Nowak

Store enabled global *site* preferences in BT5.

parent 52c12238
100
\ No newline at end of file
101
\ No newline at end of file
vifib_default_site_preference
vifib_default_system_preference
\ No newline at end of file
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment