Back to index

plone3  3.1.7
folder_edit_control.py
Go to the documentation of this file.
00001 ##parameters=title, description, **kw
00002 ##
00003 from Products.CMFDefault.utils import Message as _
00004 
00005 if title!=context.Title() or description != context.Description():
00006     context.edit(title=title, description=description)
00007     return context.setStatus(True, _(u'Metadata changed.'))
00008 else:
00009     return context.setStatus(False, _(u'Nothing to change.'))