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,8 +428,9 @@ class MultiRelationEditor: ...@@ -428,8 +428,9 @@ class MultiRelationEditor:
if self.relation_setter_id: if self.relation_setter_id:
relation_setter = getattr(o, self.relation_setter_id) relation_setter = getattr(o, self.relation_setter_id)
relation_setter((), portal_type=self.portal_type_list) relation_setter((), portal_type=self.portal_type_list)
relation_setter(relation_uid_list, relation_setter(relation_uid_list, # relation setter is uid based
portal_type=self.portal_type_list) portal_type=self.portal_type_list) # maybe not the best solution
# and inconsistent with bellow
else: else:
# we could call a generic method which create the setter method name # we could call a generic method which create the setter method name
if len(relation_object_list) == 1: if len(relation_object_list) == 1:
......
...@@ -115,7 +115,12 @@ class PreferenceMethod(Method) : ...@@ -115,7 +115,12 @@ class PreferenceMethod(Method) :
return _getPreference(user_name=user_name) return _getPreference(user_name=user_name)
class PreferenceTool(BaseTool): 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' id = 'portal_preferences'
meta_type = 'ERP5 Preference Tool' meta_type = 'ERP5 Preference Tool'
portal_type = '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