Commit 79594ad1 authored by Jean-Paul Smets's avatar Jean-Paul Smets

More comments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10048 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 94e32900
......@@ -428,14 +428,15 @@ class MultiRelationEditor:
if self.relation_setter_id:
relation_setter = getattr(o, self.relation_setter_id)
relation_setter((), portal_type=self.portal_type_list)
relation_setter(relation_uid_list,
portal_type=self.portal_type_list)
relation_setter(relation_uid_list, # relation setter is uid based
portal_type=self.portal_type_list) # maybe not the best solution
# and inconsistent with bellow
else:
# we could call a generic method which create the setter method name
if len(relation_object_list) == 1:
set_method_name = '_set%sValue' % \
convertToUpperCase(self.base_category)
getattr(o, set_method_name)(relation_object_list[0],
getattr(o, set_method_name)(relation_object_list[0],
portal_type=self.portal_type_list)
else:
set_method_name = '_set%sValueList' % \
......
......@@ -115,7 +115,12 @@ class PreferenceMethod(Method) :
return _getPreference(user_name=user_name)
class PreferenceTool(BaseTool):
""" PreferenceTool manages User Preferences / User profiles. """
"""
PreferenceTool manages User Preferences / User profiles.
TODO:
- make the preference tool an action provider (templates)
"""
id = 'portal_preferences'
meta_type = 'ERP5 Preference Tool'
portal_type = 'Preference Tool'
......
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