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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
288e5d57
Commit
288e5d57
authored
Jan 09, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
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):
...
@@ -82,7 +82,6 @@ class PreferenceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
description
=
self
.
description
,
description
=
self
.
description
,
priority
=
1
)
priority
=
1
)
# XXX this have to be translated in user language.
preference_dict
=
{}
preference_dict
=
{}
marker
=
[]
marker
=
[]
...
...
product/ERP5Configurator/Document/SystemPreferenceConfiguratorItem.py
View file @
288e5d57
...
@@ -83,16 +83,12 @@ class SystemPreferenceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -83,16 +83,12 @@ class SystemPreferenceConfiguratorItem(ConfiguratorItemMixin, XMLObject):
description
=
self
.
description
,
description
=
self
.
description
,
priority
=
1
)
priority
=
1
)
# XXX this have to be translated in user language.
preference_dict
=
{}
preference_dict
=
{}
marker
=
[]
marker
=
[]
activated_preference
=
portal
.
portal_preferences
.
getActiveSystemPreference
()
for
preference_name
in
self
.
_getPreferenceNameList
():
for
preference_name
in
self
.
_getPreferenceNameList
():
preference_value
=
getattr
(
self
,
preference_name
,
preference_value
=
getattr
(
self
,
preference_name
,
preference
.
getProperty
(
preference_name
,
marker
))
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
:
if
preference_value
is
not
marker
and
preference_value
is
not
None
:
preference_dict
[
preference_name
]
=
preference_value
preference_dict
[
preference_name
]
=
preference_value
...
...
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