Commit 6c055993 authored by Romain Courteaud's avatar Romain Courteaud

As all_editable_columns was removed, we remove also all references to it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7354 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c816e5b
...@@ -545,7 +545,6 @@ class ListBoxWidget(Widget.Widget): ...@@ -545,7 +545,6 @@ class ListBoxWidget(Widget.Widget):
select = field.get_value('select') select = field.get_value('select')
sort = field.get_value('sort') sort = field.get_value('sort')
editable_columns = field.get_value('editable_columns') editable_columns = field.get_value('editable_columns')
all_editable_columns = field.get_value('all_editable_columns')
stat_columns = field.get_value('stat_columns') stat_columns = field.get_value('stat_columns')
url_columns = field.get_value('url_columns') url_columns = field.get_value('url_columns')
search_columns = field.get_value('search_columns') search_columns = field.get_value('search_columns')
...@@ -696,7 +695,6 @@ class ListBoxWidget(Widget.Widget): ...@@ -696,7 +695,6 @@ class ListBoxWidget(Widget.Widget):
editable_column_ids = map(lambda x: x[0], editable_columns) editable_column_ids = map(lambda x: x[0], editable_columns)
all_editable_column_ids = map(lambda x: x[0], all_editable_columns)
url = REQUEST.URL url = REQUEST.URL
...@@ -2061,10 +2059,8 @@ class ListBoxValidator(Validator.Validator): ...@@ -2061,10 +2059,8 @@ class ListBoxValidator(Validator.Validator):
here = getattr(form, 'aq_parent', REQUEST) here = getattr(form, 'aq_parent', REQUEST)
columns = field.get_value('columns') columns = field.get_value('columns')
editable_columns = field.get_value('editable_columns') editable_columns = field.get_value('editable_columns')
all_editable_columns = field.get_value('all_editable_columns')
column_ids = map(lambda x: x[0], columns) column_ids = map(lambda x: x[0], columns)
editable_column_ids = map(lambda x: x[0], editable_columns) editable_column_ids = map(lambda x: x[0], editable_columns)
all_editable_column_ids = map(lambda x: x[0], all_editable_columns)
selection_name = field.get_value('selection_name') selection_name = field.get_value('selection_name')
#LOG('ListBoxValidator', 0, 'field = %s, selection_name = %s' % (repr(field), repr(selection_name))) #LOG('ListBoxValidator', 0, 'field = %s, selection_name = %s' % (repr(field), repr(selection_name)))
selection = here.portal_selections.getSelectionFor(selection_name, REQUEST=REQUEST) selection = here.portal_selections.getSelectionFor(selection_name, REQUEST=REQUEST)
...@@ -2236,8 +2232,11 @@ class ListBox(ZMIField): ...@@ -2236,8 +2232,11 @@ class ListBox(ZMIField):
security.declareProtected('Access contents information', 'get_value') security.declareProtected('Access contents information', 'get_value')
def get_value(self, id, **kw): def get_value(self, id, **kw):
if id == 'default' and kw.get('render_format') in ('list', ): if (id == 'default') and \
return self.widget.render(self, self.generate_field_key() , None , kw.get('REQUEST'), render_format=kw.get('render_format')) (kw.get('render_format') in ('list', )):
return self.widget.render(self, self.generate_field_key(), None,
kw.get('REQUEST'),
render_format=kw.get('render_format'))
else: else:
# Try an ERP5-style accessor, if available. # Try an ERP5-style accessor, if available.
method_id = 'get' + convertToUpperCase(id) method_id = 'get' + convertToUpperCase(id)
......
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