Commit 288e5d57 authored by Jérome Perrin's avatar Jérome Perrin

no need to copy from active preference

parent ce36b0ec
......@@ -82,7 +82,6 @@ class PreferenceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
description = self.description,
priority = 1)
# XXX this have to be translated in user language.
preference_dict = {}
marker = []
......
......@@ -83,16 +83,12 @@ class SystemPreferenceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
description = self.description,
priority = 1)
# XXX this have to be translated in user language.
preference_dict = {}
marker = []
activated_preference = portal.portal_preferences.getActiveSystemPreference()
for preference_name in self._getPreferenceNameList():
preference_value = getattr(self, preference_name,
preference.getProperty(preference_name, marker))
if preference_value is marker and activated_preference is not None:
preference_value = activated_preference.getProperty(preference_name, marker)
if preference_value is not marker and preference_value is not None:
preference_dict[preference_name] = preference_value
......
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