Back to index

plone3  3.1.7
folder_delete_control.py
Go to the documentation of this file.
00001 ##parameters=ids, **kw
00002 ##title=Delete objects from a folder
00003 ##
00004 from Products.CMFDefault.utils import Message as _
00005 
00006 context.manage_delObjects( list(ids) )
00007 
00008 if len(ids) == 1:
00009     return context.setStatus(True, _(u'Item deleted.'))
00010 else:
00011     return context.setStatus(True, _(u'Items deleted.'))