Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Binh
erp5
Commits
288e5d57
Commit
288e5d57
authored
12 years ago
by
Jérome Perrin
Browse files
Options
Download
Email Patches
Plain Diff
no need to copy from active preference
parent
ce36b0ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
product/ERP5Configurator/Document/PreferenceConfiguratorItem.py
...t/ERP5Configurator/Document/PreferenceConfiguratorItem.py
+0
-1
product/ERP5Configurator/Document/SystemPreferenceConfiguratorItem.py
...Configurator/Document/SystemPreferenceConfiguratorItem.py
+0
-4
No files found.
product/ERP5Configurator/Document/PreferenceConfiguratorItem.py
View file @
288e5d57
...
...
@@ -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
=
[]
...
...
This diff is collapsed.
Click to expand it.
product/ERP5Configurator/Document/SystemPreferenceConfiguratorItem.py
View file @
288e5d57
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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