##parameters=ids=None
from Products.Silva.i18n import translate as _
view = context
request = view.REQUEST
model = request.model

if not ids:
  return view.tab_edit(message_type='error', 
          message=_('Nothing was selected, so nothing was approved.'))

objects = [getattr(model, id) for id in ids]

view.bulk_set_displaydate(objects)

message = context.open_now(objects)

return view.tab_edit(message_type='feedback', message=message)
